ScintillaNET
ScintillaNET copied to clipboard
C# Lexer?
Hi,
Can someone PLEASE provide me with the code for the C# Lexer?
I need to turn off highlighting outside of C# code that is enclosed within double angle brackets.
IOW:
This is text that must not be highlighted
<< class a_class { string code_line = "This is code to be highlighted"; } >>
This is more text that must not be highlighted
This is in WPF.
THANKS!
ScintillaNET is a .NET wrapper for native/C++ Scintilla. You'd need to modify LexCPP.cxx and recompile it, then use new SciLexer.dll in ScintillaNET.
Note that LexCPP.cxx is a general lexer for all C-style languages, such as JavaScript, Java, Vala, etc. There's no specific lexer for C#.
Also note that ScintillaNET is not up-to-date with the latest major Scintilla release, so you could end up breaking it completely if you use the latest .dll from Scintilla in ScintillaNET.
See Wiki page: Using a Custom SciLexer.dll
Thanks for the tips.
Are there any plans to re-build and test ScintllaNET with the latest version of Scintilla?
If not, then what would be the best way to gather the code that was used to build the most-recent version of Scintilla that was used with ScintillaNET?
THANKS!
I really don't know. The author, @jacobslusser, may have the answer. My best guess is that he doesn't have much time to work on the project.
the person from #444 has a C# lexer in their repositories