public string Haxe(string sourceText, string fileName) { Sci.ConfigurationLanguage = "haxe"; ASContext.Context.SetHaxeFeatures(); ASContext.Context.CurrentModel.Returns(new FileModel { haXe = true, Context = ASContext.Context, FileName = fileName }); Sci.Text = sourceText; Sci.Colourise(0, -1); // Needed for preprocessor directives... SnippetHelper.PostProcessSnippets(Sci, 0); var currentModel = ASContext.Context.CurrentModel; new ASFileParser().ParseSrc(currentModel, Sci.Text); CommandFactoryProvider.GetFactory(Sci) .CreateOrganizeImportsCommand() .Execute(); return(Sci.Text); }