• Login
Community
  • Login

Stylers.xml / lang.xml

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 242 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.
  • B
    Bernd Oldenbeuving
    last edited by Jun 2, 2023, 1:51 PM

    Re: Extend syntax highlighting for a certain language

    Refering to the above post I am trying to figure out a way to fold on a #if( to #end by adding lines to one of the above files.

    Has anyone tried this?

    Thank you for your support.

    Bernd

    P 1 Reply Last reply Jun 2, 2023, 2:38 PM Reply Quote 0
    • P
      PeterJones @Bernd Oldenbeuving
      last edited by PeterJones Jun 2, 2023, 2:45 PM Jun 2, 2023, 2:38 PM

      @Bernd-Oldenbeuving ,

      to one of the above files.

      That’s not very specific, even when I go back and re-skim the discussion from 2.5 years ago. edit: Oh, I realized you meant the stylers.xml and lang.xml from your subject line, not some random files mentioned years ago; the rest of my post (below) still applies.

      If you are using a built-in language, you cannot “add folding” in any meaningful way (update: if there’s already a list of folding keywords for your language in the Style Configurator, then either adding your terms to the list would work; but I don’t remember there being any built-in languages that list their folding-keywords in the style configurator). To get different folding than the native language-processor’s folding, you would have to manually create a new UDL that incorporates some of the features of that language, and then use your UDL instead of the built-in language for highlighting and folding your source code.

      If you are using a UDL already, then just add the #if/#end keywords to the folding pairs (probably folding-in-code2 style, or maybe folding-in-comment style, depending on if there’s more meaning to the # prefix or not).

      But without more details about your specific situation, these vague statements are the best I can do.

      1 Reply Last reply Reply Quote 2
      • B
        Bernd Oldenbeuving
        last edited by Jun 2, 2023, 2:58 PM

        Hi Peter,

        thx for your reply! I already tried some of the tricks you provided, but I overlooked one that I will try this weekend.
        Will post the result

        Regards Bernd

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