Provides syntax highlight and automatic completion in Notepad++ for the new features implemented in CSS, using Notepad++'s User Defined Language.
Note for developers
Most of the new feature are supported by all major browsers. If you are targetting old browsers you will need to transform your CSS into compatible CSS using tools like PostCSS and the preset postcss-preset-env.
- Custom properties
- Functions
- Pseudo-selectors
- New at-rules (@custom-media, @apply, ...)
- Nesting
- Download UDL file ModernCSS.xml.
- Open Notepad++.
- Go to "Language > Define your language...".
- Click on "Import..." button, browse to the location where ModernCSS.xml was saved and open it.
- Restart Notepad++.
Open a CSS file and enable the syntax highlight by selecting "Language > ModernCSS".
(An example file 'test.css' is provided to test the syntax highlighting.)
Up-to-date auto-completion file for modern CSS development.
- Close Notepad++.
- Download API file ModernCSS.xml.
- Move the downloaded file to the "autoCompletion" subfolder in your Notepad++ installation folder.
- Open a CSS file with Notepad++ and check if auto-completion is working by typing the name of a property.
The colors of the syntax highlighting are optimized for dark themes. If you want to change the colors to fit your theme, you can use the Used Define Language tool in Notepad++ or edit the ModernCSS.xml file.
Released under The MIT License (MIT).