Community
    • Login

    Creating BBCode User-Defined Language - Help understanding format?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    bbcodeforum codesyntaxudlhighlighting
    3 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.
    • MegaScienceM Offline
      MegaScience
      last edited by

      I’m currently trying to set up a User-Defined Language for BBCode to help me work with a forum through Notepad++. I’ve been fiddling with the settings in Notepad++ trying to replicate features offered with default languages such as HTML, but I suppose I have yet to reach the comprehension required for that.

      I know all the tags I want it to highlight. This variant of BBCode uses the [QUOTE=""] format for parameters. Lists use [list=A] type syntax, with list elements prefixed with [*]. If anyone could help me figure out how to make this work with collapsing and click-to-highlight-open/close tags, I’d appreciate it. Even if you just point me in the right direction for how to properly accomplish this.

      1 Reply Last reply Reply Quote 0
      • MegaScienceM Offline
        MegaScience
        last edited by

        This is what I have so far. It almost works, but normal words are highlighted and some of the = syntax whereas " marks are omitted aren’t recognized. I figured a way to make them recognized, but capping them with ] means that that part gets colored, too. I’d also really like that feature where I could click one tag and the other, associated tag highlights, but I get the sense that isn’t possible with User-Defined languages.

        1 Reply Last reply Reply Quote 0
        • rddimR Offline
          rddim
          last edited by

          Take a look at https://ivan-radic.github.io/udl-documentation/, it may be help you

          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