ScintillaNET icon indicating copy to clipboard operation
ScintillaNET copied to clipboard

C# Lexer?

Open RayBowman2017b opened this issue 5 years ago • 4 comments

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!

RayBowman2017b avatar Jan 04 '19 22:01 RayBowman2017b

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

xv avatar Jan 05 '19 00:01 xv

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!

RayBowman2017b avatar Jan 08 '19 22:01 RayBowman2017b

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.

xv avatar Jan 09 '19 00:01 xv

the person from #444 has a C# lexer in their repositories

ericoporto avatar Oct 03 '22 21:10 ericoporto