• Login
Community
  • Login

Is it possible to edit/modify a "Language"

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 3 Posters 1.1k Views
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.
  • H
    Henri Monnier
    last edited by Jul 23, 2018, 9:32 PM

    I would like to modify the ‘BlitzBasic’ language. Is there a way to access and modify the descriptor file (or whatever they call it)?

    C 1 Reply Last reply Jul 24, 2018, 12:58 PM Reply Quote 0
    • C
      Claudia Frank @Henri Monnier
      last edited by Jul 24, 2018, 12:58 PM

      @Henri-Monnier

      the builtin langauges like python, blitzbasic, c, … are source compiled.
      If you want to change it you need to modify the needed lexer and recompile it.
      Because npp started using a signed scintilla dll you need to modify the source code
      of npp as well, which basically means you come up with your own version of npp.

      Another way would be to create an user defined language which is basically an xml
      file which gets loaded to the udl lexer .
      You can do a lot with udl but depending on the language it might be that not every piece can be done. Documentation about UDL is here .

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 2
      • J
        Jim Dailey
        last edited by Jul 24, 2018, 1:35 PM

        @Henri-Monnier

        Short of modifying the lexer or creating a user-defined language, there are a couple of small changes you can make to the way a language is highlighted.

        First, you can add new “words” of various kinds to be highlighted by editing the stylers.xml file.

        Second, you can use the menu option Settings–>Style Configurator to change the appearance of various language features.

        1 Reply Last reply Reply Quote 2
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors