Community
    • Login

    Stylers.xml / lang.xml

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 440 Views 2 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.
    • Bernd OldenbeuvingB Offline
      Bernd Oldenbeuving
      last edited by

      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

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @Bernd Oldenbeuving
        last edited by PeterJones

        @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
        • Bernd OldenbeuvingB Offline
          Bernd Oldenbeuving
          last edited by

          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

          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