Home Download Buy Blog Forum Support

Plugin suggestion: Hide HTML Tags

Plugin suggestion: Hide HTML Tags

Postby pupppet on Tue Feb 12, 2013 2:35 am

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.
Attachments
sample-on.jpg
Example with suggested plugin enabled
sample-on.jpg (75.64 KiB) Viewed 940 times
sample-off.jpg
Example with suggested plugin disabled
sample-off.jpg (248.21 KiB) Viewed 941 times
pupppet
 
Posts: 2
Joined: Sat Feb 09, 2013 8:37 am

Re: Plugin suggestion: Hide HTML Tags

Postby sindresorhus on Sat May 10, 2014 10:04 pm

Check out my Focus color theme.

Image
sindresorhus
 
Posts: 5
Joined: Sun Jan 29, 2012 1:31 am

Re: Plugin suggestion: Hide HTML Tags

Postby qgates on Tue May 13, 2014 4:08 am

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:

Code: Select all
search: <.*?>
replace with nothing


Bear in mind this will strip out all tags, but won't strip multiline comments and will leave everything else.
qgates
 
Posts: 205
Joined: Mon Nov 05, 2012 4:33 pm

Re: Plugin suggestion: Hide HTML Tags

Postby FichteFoll on Fri May 16, 2014 11:58 am

To match mutli-line comments, make that:

Code: Select all
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.
FichteFoll
 
Posts: 377
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 8 guests