Skip to content

HoodedBlack/Rblx-Lua-Syntax-Highlighting-XML-XSHD-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Rblx-Lua-Syntax-Highlighting-XML-XSHD-

A simple roblox Lua syntax highlighting using ICSharpCode's TextEditor in C#

To use this file, head to https://github.com/icsharpcode/SharpDevelop/wiki/Syntax-highlighting and use their provider for the TextEditor.

Once you have their text editor, use the following code to attach the syntax highlighting:

string dir = @"resources\highlighting\\"; // Insert the path to your xshd-files.
FileSyntaxModeProvider fsmProvider; // Provider
if (Directory.Exists(dir))
{
    fsmProvider = new FileSyntaxModeProvider(dir); // Create new provider with the highlighting directory.
    HighlightingManager.Manager.AddSyntaxModeFileProvider(fsmProvider); // Attach to the text editor.
    txtSQL.SetHighlighting("YourHighlighting"); // Activate the highlighting, use the name from the SyntaxDefinition node.
}

About

A simple syntax highlighting using AvalonEdit in C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published