Community
    • Login

    External Lexer question

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    2 Posts 2 Posters 3.8k Views 1 Watching
    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.
    • dailD Offline
      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 SadaV 1 Reply Last reply Reply Quote 0
      • Victor Medrano SadaV Offline
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors