Certain colors for CSS ID and CLASS

Started by paw, June 17, 2015, 04:11:47 PM

Previous topic - Next topic

paw

Hi Alex

Is it possible to define certain colors for IDs and CLASSes in CSS? I still couldn't find those two at - CSS >> Fonts And Colors. Thanks.

alex

do you mean you want some HTML attributes to be colored differently than other attributes?
Can you please provide an example.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

paw

Hi Alex

Here's the screenshot for style configurator from Notepad++, and I can define colors for CLASS and ID at there.

http://prntscr.com/7i20nc

I wish I could do that in HE. It's much easier to read CSS if CLASS and ID can be colored.

alex

Hi pow,

can you please provide screenshot of already highlighted css (you can embed directly in post with attachments) + css text itself that I can try in HE (actually I can check in NP++ by myself if I have a sample code).
For getting new styles in CSS Fonts & Colors one need to extend CSS syntax specification. Tools->Options->Syntax Settings->CSS->Miscellaneous->Edit Specification File.

BR, Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

paw

Hi Alex,

This is the sample CSS -

.paw h1,
.paw ul,
.paw a,
.paw p,
#paw h1,
#paw ul,
#paw a,
#paw p {
font-size: 10px;
}


When I open it on HE, the CLASSes and IDs are all in black color. When working with huge CSS file with lots of CLASSes and IDs, they are really hard to read. Below is the HE screenshot.

[attachimg=2]

Here's the another screenshot when on Notepad++. With different colors, they are quite easy to recognize.

[attachimg=1]


alex

OK, got it.
Please update CSS schema using Updates Manager => menu Help->Check for updates...

BR, Alex
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

paw

 :) Thank you so much for the update.

"All is well" now.