This Visual Studio Code (VS Code) extension provides syntax highlighting support for the MapCSS language within the VS Code editor. MapCSS is a stylesheet language used primarily in web mapping applications, particularly with OpenStreetMap-based mapping software. This extension is not a linter, but it should help you more easily identify where you have problems in your MapCSS files.
- Syntax highlighting for MapCSS language files and embedded regular expressions.
- Improved code readability with color-coded elements.
- Enhanced development experience for MapCSS stylesheet authors.
- Easily distinguishable properties, selectors, and values.
You can install this extension from the Visual Studio Code Marketplace. Here's how:
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the square icon on the sidebar or pressing
Ctrl+Shift+X
(Windows) orCmd+Shift+X
(Mac). - Search for "MapCSS Syntax Highlighter."
- Click the "Install" button to install the extension.
- Once installed, click the "Reload" button to activate the extension.
Once the extension is installed and activated, it will automatically provide syntax highlighting for files with the .mapcss
extension or when the MapCSS language is selected explicitly in the editor.
Here's how you can enable syntax highlighting manually for a file:
- Open a MapCSS file (or create a new one with the
.mapcss
extension). - In the lower-right corner of the editor, click on the language mode (e.g., "Plain Text" or "HTML").
- In the dropdown, search for "MapCSS" and select it. This will apply the syntax highlighting.
The extension will now highlight MapCSS syntax elements with appropriate colors, making your code more readable and less error-prone.
If you'd like to contribute to the development of this extension or report issues, please visit the GitHub repository:
Feel free to fork the repository, submit pull requests, or open issues with any feedback, bug reports, or feature requests.
This extension is licensed under the MIT License.
- Special thanks to fansanelli for the initial development of the project.
- Thanks to all of you users!
Happy mapping with MapCSS syntax highlighting in Visual Studio Code! If you have any questions or encounter any issues, please don't hesitate to reach out on the GitHub repository.