Sublime Forum

Plugin suggestion: Hide HTML Tags

#1

It would be nice to be able to hide the HTML tags, it would allow for easier scanning when you’re looking for some specific content in your file as opposed to specific HTML. I was thinking a poor-man’s version of the plugin would just be to map a keyboard shortcut to a color scheme that simply has the HTML tags as the same color as the background. Anyways, just an idea.




0 Likes

#2

Check out my Focus color theme.

https://raw.githubusercontent.com/sindresorhus/focus/master/screenshot-dark.png

0 Likes

#3

Focus colour theme seems like the best option for this nondestructively. But for a quick way to strip out all tags through regex S&R:

search: <.*?>
replace with nothing

Bear in mind this will strip out all tags, but won’t strip multiline comments and will leave everything else.

0 Likes

#4

To match mutli-line comments, make that:

search: (?s)<.*?>
replace:

You could also just edit the Focus color scheme to make the matched text have the exact same color as the background.

0 Likes