Author Topic: Certain colors for CSS ID and CLASS  (Read 1478 times)

Offline paw

  • Registered User
  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Certain colors for CSS ID and CLASS
« on: June 17, 2015, 03:11:47 pm »
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.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2162
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Certain colors for CSS ID and CLASS
« Reply #1 on: June 17, 2015, 03:42:06 pm »
do you mean you want some HTML attributes to be colored differently than other attributes?
Can you please provide an example.

Offline paw

  • Registered User
  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Certain colors for CSS ID and CLASS
« Reply #2 on: June 17, 2015, 04:58:09 pm »
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.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2162
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Certain colors for CSS ID and CLASS
« Reply #3 on: June 17, 2015, 09:38:39 pm »
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.

Offline paw

  • Registered User
  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Certain colors for CSS ID and CLASS
« Reply #4 on: June 17, 2015, 09:55:09 pm »
Hi Alex,

This is the sample CSS -

Code: [Select]
.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.



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




Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2162
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Certain colors for CSS ID and CLASS
« Reply #5 on: June 17, 2015, 10:43:20 pm »
OK, got it.
Please update CSS schema using Updates Manager => menu Help->Check for updates...

BR, Alex

Offline paw

  • Registered User
  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Certain colors for CSS ID and CLASS
« Reply #6 on: June 17, 2015, 11:17:54 pm »
 :) Thank you so much for the update.

"All is well" now.

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
1771 Views
Last post June 25, 2009, 01:30:22 pm
by alex
3 Replies
1615 Views
Last post September 02, 2009, 09:10:11 pm
by alex
5 Replies
3150 Views
Last post November 22, 2010, 05:22:10 am
by false007
1 Replies
2679 Views
Last post October 07, 2011, 07:53:43 pm
by alex
2 Replies
1729 Views
Last post October 25, 2014, 06:58:53 pm
by HotPieDip