Skip to content

How to use PyCharm community edition for CSS file edit and writing (enabling highlighting)

Notifications You must be signed in to change notification settings

LuisGan-C/CSSwithPyCharmFree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSSwithPyCharmFree

How to use PyCharm community edition for CSS file edit (enabling highlighting).

This repo shows you how you can enable PyCharm Community Edition for CSS keywords, attrs and properties highlighting to be able to write CSS code with the Free PyCharm IDE.

This repo scrapes the tables from the following web pages:

Page for HTML5 tags

Page for CSS3 properties

Then wrangles the data an create two text documents one with all the HTML tags and then all the CSS properties.

It creates a "keywords1.txt" and "keywords2.txt" documents where the data is stored.

For enabling the CSS keywords highlighting do the following in the PyCharm IDE:

  • Go to Settings -> Editor -> File Type.
  • Remove associaton with *.css of the default profile.
  • Add a new configuration named CSS and associate it with *.css files.
  • Set the block comments start /* and end */.
  • Add the key words for each level:
  • Level 1: the data stored in the "Keywords1.txt" file
  • Level 2: the data stored in the "ketwords2.txt" file
  • level 3: em pt px rgb rgba
  • level 4: !important active after before hover none visited

And thats it!

Idea taken from the answer of this StackOverflow question:

StackOveflow Question

The answer is from the user Andrea

About

How to use PyCharm community edition for CSS file edit and writing (enabling highlighting)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages