Community
    • Login

    Is there a way to automatically format differently odd and even lines?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 4 Posters 352 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.
    • F
      fabiospark
      last edited by

      The title says it all.

      Think of a lyrics with chords on top of each line of text.
      The chords lines should have their own formatting, different than the text lines.

      It would even be better if this could happen without the restriction of the line numbers (even or odd), maybe through some hidden special character at the beginning, different for chords and text lines or, even better, with no need of them.

      Thank you.
      fabio

      CoisesC Alan KilbornA 2 Replies Last reply Reply Quote 0
      • CoisesC
        Coises @fabiospark
        last edited by

        Notepad++ is a plain text editor.

        If you want different formatting in different parts of the file, you’ll need to work with something else, like MS Word (or a clone, like LibreOffice Writer), or else use a formatting language like HTML (if you want display in a web browser).

        1 Reply Last reply Reply Quote 2
        • Alan KilbornA
          Alan Kilborn @fabiospark
          last edited by Alan Kilborn

          @fabiospark said in Is there a way to automatically format differently odd and even lines?:

          maybe through some hidden special character at the beginning, different for chords and text lines

          If you’re only after some limited formatting, e.g., changing the foreground color of the lines, then this might be something to look into the EnhanceAnyLexer plugin to do.

          F 1 Reply Last reply Reply Quote 2
          • F
            fabiospark @Alan Kilborn
            last edited by fabiospark

            @Alan-Kilborn I’m looking for something like this:

            alt text

            (sorry but I couldn’t find a working link to show the image directly in this post).

            Thx.

            Alan KilbornA PeterJonesP 2 Replies Last reply Reply Quote 0
            • Alan KilbornA
              Alan Kilborn @fabiospark
              last edited by

              @fabiospark said in Is there a way to automatically format differently odd and even lines?:

              sorry but I couldn’t find a working link to show the image directly in this post

              Get it in your clipboard and Ctrl+v paste it here?

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

                @fabiospark said in Is there a way to automatically format differently odd and even lines?:

                sorry but I couldn’t find a working link to show the image directly in this post

                https://i.ibb.co/XjLsdV9/2024-05-25-221302.jpg

                ![](https://i.ibb.co/XjLsdV9/2024-05-25-221302.jpg)
                

                …
                Or you could have saved yourself a lot of trouble and just pasted the image directly… The forum accepts pasted images.

                —

                As to getting what you want: if you were to use EnhanceAnyLexer plugin, and were willing to start each chord-line with a unique-but-not-noticeable character (like a non breaking space), then you could set the regex in the plugin to change the foreground color of any line starting with that character – it wouldn’t be bold, and you couldn’t change the background, but maybe you’d be okay with it.

                But it sounds like what you really want is tablature software, not a text editor, and I’m sure there must be plenty of open-source tablature programs out there, or at least shareware/freeware, so I’m not sure why you are trying to use this screwdriver as a chisel.

                F 1 Reply Last reply Reply Quote 1
                • F
                  fabiospark @PeterJones
                  last edited by

                  @PeterJones I didn’t even think it was possible to justa copy paste an image. Thx.

                  In fact I’m using an online tab&chords sharing site that apply by itself that kind of formatting understanding if it’s a line of chords or of text, but for some things it’s a pain in the neck so, after having seen what NP++ can do with specific languages I hoped that there were some possibility to get the same thing here, so I would have more control.

                  Anyway, thank you to you and to everybody for the time you spent listening and replying to me.

                  Thank you
                  fabio.

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