Results 1 to 4 of 4

Thread: I need help with scintilla!!

Threaded View

  1. #3
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,296

    Re: I need help with scintilla!!

    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
    Last edited by dz32; Jul 10th, 2022 at 08:10 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width