Community
    • Login

    Marckdown Styling

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 227 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.
    • Luke ML
      Luke M
      last edited by

      Is there a possibility to style the whole Markdown block?
      E.g.:

      • H1 to H6 to have each a different colour (not only orange)
      • Blockquotes: change the colour also of the Quote, not only of the bracket

      I’ve tried to play with the language styling, but all my efforts so far change always all title elements :(

      npp_markdown.jpg

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Luke M
        last edited by PeterJones

        @luke-m ,

        The pre-installed markdown UDL is using the comment-style for titles, so that wouldn’t allow separate coloring. If you turn that off, so it’s not a comment, and instead used N of the Delimiter boxes for your N levels of title, you could get N different colors for title… but that would reduce the number of delimiters available for the other syntax. Like the other delimiters n the pre-installed md, you would use ((EOL)) as the closing text for each title line; and you would have to define the largest number of title-#'s in the lowest numbered delimiter box (so delimiter 1 = ######, 2 = #####, … – though, unless you frequently go beyond level 3 or four, I might just assign three levels: ###, ##, and # – and thus level 3 or beyond would all be same color, which might be an acceptible compromise)

        Right now, the > is defined as an operator. If you were to change it to a delimiter, you could get the whole line.

        b7e42857-ccd2-422d-872b-af4c5c502ed4-image.png

        Alternately, you could add extra highlighting to any builtin lexer or User Defined Language (UDL) using regexes via the PythonScript plugin in conjunction with the script EnhanceAnyLexer.py that @Ekopalypse shares in his github repo

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