Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    External Lexer question

    Plugin Development
    2
    2
    2980
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dail
      dail last edited by

      So I’m attempting to write an external lexer (well kind of, but that’s a different story). I’ve looked at some other examples (the GEDCOM lexer, Gmod Lua Lexer, etc) and understand how they work and the general setup for getting an external lexer working.

      My question is regarding styling. In the xml file associated with the external lexer, there are “WordsStyle” tags that need to be defined that have a styleID, font color, size, etc so that the external lexer Lex() function can use these styles. Is there a way to generate these styles within the lexer itself, meaning you can possibly have a varying number of styles? I know there isn’t a huge number of people that deal with external lexers, so hopefully someone can help :)

      Victor Medrano Sada 1 Reply Last reply Reply Quote 0
      • Victor Medrano Sada
        Victor Medrano Sada @dail last edited by

        @dail said:

        So I’m attempting to write an external lexer (well kind of, but that’s a different story). I’ve looked at some other examples (the GEDCOM lexer, Gmod Lua Lexer, etc) and understand how they work and the general setup for getting an external lexer working.

        My question is regarding styling. In the xml file associated with the external lexer, there are “WordsStyle” tags that need to be defined that have a styleID, font color, size, et*

        • italicised text*c so that the external lexer Lex() function can use these styles. Is there a way to generate these styles within the lexer itself, meaning you can possibly have a varying number of styles? I know there isn’t a huge number of people that deal with external lexers, so hopefully someone can help :)
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors