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.
    • Henri MonnierH
      Henri Monnier
      last edited by

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

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Henri Monnier
        last edited by

        @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
        • Jim DaileyJ
          Jim Dailey
          last edited by

          @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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors