is it possible to show every 2nd line number in a different (background-)color?
For example, is it possible to set the color of the odd line-numbers and to set the color
of the even line-numbers? Can I do this using a macro?
Many thanks for any hint!
Regards
Hans
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Currently, you can (only?) bookmark the lines of your wishes (odd or even) using a couple of features.
1. Select all text: CTRL+A
2. Insert Line Numbers
Menu____: TextFX
Submenu_: TextFX Tools
Option__: Insert Line Numbers
3. Mark Lines
Open the Find dialog: CTRL+F
Check: Mark Lines
Check: Regular expression
"Find what:"
^\d\d\d\d\d\d\dc_
Type as much \d's as there are line number digits, minus one.
At the end you should type a space character instead of the underscore _.
To mark odd lines, type 13579 instead of 02468.
Click Find All
4. Remove Line Numbers
When you use TextFX or Undo to (un)do this, the bookmarks will be lost, unfortunately.
You can select the block of line numbers and remove them manually.
The bookmarks will remain then.
Press CTRL+Home.
Hold down the SHIFT button and press CTRL+End.
Hold down the SHIFT button and Press CursorUp.
Hold down the SHIFT button and press CTRL+CursorRight.
Hold down the SHIFT button and press CursorLeft.
Hold down the SHIFT button and the ALT button and press CursorRight.
Press Delete.
This will leave you with two undo actions in the buffer, but at least your lines are marked.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
is it possible to show every 2nd line number in a different (background-)color?
For example, is it possible to set the color of the odd line-numbers and to set the color
of the even line-numbers? Can I do this using a macro?
Many thanks for any hint!
Regards
Hans
How would you like wrapped lines to be colored?
Currently, you can (only?) bookmark the lines of your wishes (odd or even) using a couple of features.
1. Select all text: CTRL+A
2. Insert Line Numbers
Menu____: TextFX
Submenu_: TextFX Tools
Option__: Insert Line Numbers
3. Mark Lines
Open the Find dialog: CTRL+F
Check: Mark Lines
Check: Regular expression
"Find what:"
^\d\d\d\d\d\d\dc_
Type as much \d's as there are line number digits, minus one.
At the end you should type a space character instead of the underscore _.
To mark odd lines, type 13579 instead of 02468.
Click Find All
4. Remove Line Numbers
When you use TextFX or Undo to (un)do this, the bookmarks will be lost, unfortunately.
You can select the block of line numbers and remove them manually.
The bookmarks will remain then.
Press CTRL+Home.
Hold down the SHIFT button and press CTRL+End.
Hold down the SHIFT button and Press CursorUp.
Hold down the SHIFT button and press CTRL+CursorRight.
Hold down the SHIFT button and press CursorLeft.
Hold down the SHIFT button and the ALT button and press CursorRight.
Press Delete.
This will leave you with two undo actions in the buffer, but at least your lines are marked.
"Find what:"
^\d\d\d\d\d\d\dc_
the find string should be:
^\d\d\d\d\d\d\d[02468]_
which is
^\d\d\d\d\d\d\d
>square bracket open<
02468
>square bracket close<
_underscore character_