Home Download Buy Blog Forum Support

Highlighting character %

Highlighting character %

Postby masfur on Tue Nov 19, 2013 10:01 am

Good morning.
How can I remove the highlighting to the "%" character in html?
Thank you.
masfur
 
Posts: 4
Joined: Tue Nov 19, 2013 9:54 am

Re: Highlighting character %

Postby masfur on Fri Nov 29, 2013 11:33 am

Isn't a possible solution?

Image
masfur
 
Posts: 4
Joined: Tue Nov 19, 2013 9:54 am

Re: Highlighting character %

Postby Orlmente on Fri Nov 29, 2013 12:52 pm

Are you talking about the ampersand or the percent symbol?
the ampersand is highlighted because it triggers invalid.illegal.bad-ampersand.html scope in HTML.tmLanguage, using unescaped ampersand (also for querystring in links) should be avoided as it's formally an error in html.
Orlmente
 
Posts: 96
Joined: Mon Mar 18, 2013 12:37 pm

Re: Highlighting character %

Postby masfur on Fri Nov 29, 2013 1:47 pm

I said just the symbol "%".
Is there a way to fix this thing?
It is an error in the html codece?
masfur
 
Posts: 4
Joined: Tue Nov 19, 2013 9:54 am

Re: Highlighting character %

Postby masfur on Fri Nov 29, 2013 3:11 pm

Excuse me a lot. The character "&"...
masfur
 
Posts: 4
Joined: Tue Nov 19, 2013 9:54 am

Re: Highlighting character %

Postby Orlmente on Fri Nov 29, 2013 4:16 pm

So i centered the point in my previews answer.
The & (ampersand), should be used escaped in html, even into link's querystrings, so it's better to write & instead of the simple &.
Although is commonly used unescaped, as a matter of fact it works in both ways, it's a formal error in html specs not to use the html entity for it, and ST is doing well highlighting it.
This gives you 3 options:
1) just ignore it (like i do),
2) use & in your code,
3) tweak/change html.tmlanguage

:)
Orlmente
 
Posts: 96
Joined: Mon Mar 18, 2013 12:37 pm


Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 16 guests