HTML Editor highlighting
I'd like to be able to highlight certain parts of an HTML file while I am working on it. Not for display on the website... just as a working tool for myself.
For example: Say I'm working on a section of a long HTML file, and want to highlight 10 lines in yellow so that I can spot it easily later.
I've hunted around... I suspect there is no such feature! Am I right?
Thanks.
For example: Say I'm working on a section of a long HTML file, and want to highlight 10 lines in yellow so that I can spot it easily later.
I've hunted around... I suspect there is no such feature! Am I right?
Thanks.
Jan,
I don't believe that there is a way to mark a set of lines with highlighting.
You can set a bookmark for a line and if you book mark the top line of a group, you have a way to quickly get there from anywhere in the document. Look under the document tab and you will find bookmarks. You can set up to ten different bookmarks.
If you put a blank line above and below the lines of code you want to return to later, and bookmark the top line, it may do what you want.
I don't believe that there is a way to mark a set of lines with highlighting.
You can set a bookmark for a line and if you book mark the top line of a group, you have a way to quickly get there from anywhere in the document. Look under the document tab and you will find bookmarks. You can set up to ten different bookmarks.
If you put a blank line above and below the lines of code you want to return to later, and bookmark the top line, it may do what you want.
Thank you, Bill. I tried to use bookmarks, but they seem to disappear when you close a file. Or am I doing it wrong? Jan
Jan,
The bookmarks stayed for me when I closed a file, but when I closed the program, they disappeared.
I just checked and the HTML editor help file states that bookmarks are lost when the file is closed.
Maybe this would be a suggestion for a future upgrade.
The bookmarks stayed for me when I closed a file, but when I closed the program, they disappeared.
I just checked and the HTML editor help file states that bookmarks are lost when the file is closed.
Maybe this would be a suggestion for a future upgrade.
Have you tried wrapping the section of HTML in a comment and then deleting part of the first comment tag to make the whole snippet one colour?
It might sound confusing but it's not.
<!-- MY BIT OF CODE THAT I WANT TO FIND AGAIN -->
<img src="images/yell_card.gif" width="12" height="15" border="0" alt="yellow card"> 1 <!-- -->
And then if you delete this bit: --> after the UPPERCASE text you'll see the whole lot turn blue and yellow.
It might sound confusing but it's not.
<!-- MY BIT OF CODE THAT I WANT TO FIND AGAIN -->
<img src="images/yell_card.gif" width="12" height="15" border="0" alt="yellow card"> 1 <!-- -->
And then if you delete this bit: --> after the UPPERCASE text you'll see the whole lot turn blue and yellow.
I recently noticed that bookmarks seem to disappear when a file is closed. No, offense, but that makes them nearly useless when you want to come back for a re-edit, doesn't it? Sort of like a bookmark that dissolves when you close the book? Please save locations of bookmarks on file close AND/OR program exit!
thanks!
Jan... by the way... here's an ugly approach I've used to help me find places in a long list of code ...
set a LONG line of "comment" and tab or space it over so the right side stands out from all the rest as being "further to the right" than anything else in the code.
like,
<!-- **************************************************My special code**** -->
if that doesn't work, try multiple lines like that above and below the code you want to highlight....
<!-- **************************************************My special code**** -->
<!-- **************************************************My special code**** -->
<!-- **************************************************My special code**** -->
<!-- **************************************************My special code**** -->
<!-- **************************************************My special code**** -->
<!-- **************************************************My special code**** -->
happy holidays!
thanks!
Jan... by the way... here's an ugly approach I've used to help me find places in a long list of code ...
set a LONG line of "comment" and tab or space it over so the right side stands out from all the rest as being "further to the right" than anything else in the code.
like,
<!-- **************************************************My special code**** -->
if that doesn't work, try multiple lines like that above and below the code you want to highlight....
<!-- **************************************************My special code**** -->
<!-- **************************************************My special code**** -->
<!-- **************************************************My special code**** -->
<!-- **************************************************My special code**** -->
<!-- **************************************************My special code**** -->
<!-- **************************************************My special code**** -->
happy holidays!
"The Whole World Is A Tradeoff."
Alan Falk wrote:
....set a LONG line of "comment" and tab or space it over so the right side stands out from all the rest as being "further to the right" than anything else in the code.....
....set a LONG line of "comment" and tab or space it over so the right side stands out from all the rest as being "further to the right" than anything else in the code.....
And/or use the color highlighting options in the HTML Editor to make the comments stand out. I use bright red and often all caps for comments...!
Per
www.mingas.com
www.mingas.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.