Is there a way to automatically format differently odd and even lines?
-
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 -
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).
-
@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.
-
@Alan-Kilborn I’m looking for something like this:
(sorry but I couldn’t find a working link to show the image directly in this post).
Thx.
-
@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?
-
@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.
-
@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.