You don’t necessarily need to use the highlighter files, you can code the settings directly in from vb which makes it easier to experiment with.
Whatever your highlighting though you need to set the proper lexer which is written in c++ and compiled into scintinilla. These can be optionally compiled in so not every dll will have all of them. The lexer is what understands the rules of the programming language like what is a comment etc.
Here is an example of manually applying the settings:
https://github.com/dzzie/YaraWorkBen...neral.bas#L354
Some typical lexers are
Code:Enum sci_lexers SCLEX_NONE = 0 SCLEX_CPP = 3 SCLEX_HTML = 4 SCLEX_XML = 5 SCLEX_SQL = 7 SCLEX_VB = 8 SCLEX_Asasm = 9 SCLEX_ASM = 34 SCLEX_CPPNOCASE = 35 SCLEX_PHPSCRIPT = 69 End Enum




Reply With Quote
