Community
    • Login

    Line breaks possible in Custom Defined Language?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 1 Posters 7.6k 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.
    • Christian RekratsC Offline
      Christian Rekrats
      last edited by Christian Rekrats

      Hi all,

      first of all I’d like to say that I really like npp. In my opinion it’s the best editor available.

      And now… my problem :D
      I’m working with a language called DMIS. After 80 characters normally a line break is entered which actually ‘breaks’ my syntax highlighting because I also made syntax highlighting for quotes (‘random text’).
      Is it possible to get npp notice this?

      Example:
      $$TEXT/OUTFIL,‘Just some random text just some random text just some rand$
      Just some random text Just some random text Just some random text Just so$
      Just some random text’

      ‘$$’ at the start of the line indicates that it is a comment (that works fine in syntax highlighting).
      the single $ at the end of the line indicates the line break.
      Because of the single quote (') in the 3rd line the rest of the program is coloured because the quote is not complete afterwards.
      I’d really like to keep the colour for the quoted text but at some programs (where line breaks are inside) it’s really annoying to manually delete the line breaks.

      Thanks for your help.

      1 Reply Last reply Reply Quote 0
      • Christian RekratsC Offline
        Christian Rekrats
        last edited by

        I think I’ve found it…

        http://udl20.weebly.com/delimiters.html

        See Example 2 and 4.

        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