CartoCSS is a language (inspired by CSS and with some similarities to CSS) to create rendering styles for geodata. Mapnik provides an implimentation as free software. CartoCSS is currently used by OpenStreetMap for their default rendering style. katepart/syntax does not provide any highlighting for this type of file. It would be nice to have this. Reproducible: Always
Created attachment 89500 [details] mss.xml A syntax highlighting file for CartoCSS
Hi, should the mss not contain at least the known commands/key-words, too?
Created attachment 90049 [details] mss.xml revised version of mss.xml with keyword list
Created attachment 90050 [details] highlight.mss a test file
Hi. Your idea of a well-defined list of commands is fine. CartoCSS does not have real keywords (like in C++). There is only “true”, “false” and some mathematical operators. But it has a long, but limited and defined list of available properties. The mss.xml has been revised and the changes that you have requested have been done.
Created attachment 90051 [details] mss.xml add support for numbers that start with a dot (“.5” as short-hand for “0.5”)
Created attachment 90052 [details] highlight.mss add support for numbers that start with a dot (“.5” as short-hand for “0.5”)
Git commit e87d51f431260dff77a30ed439cfafda92f64b95 by Christoph Cullmann. Committed on 11/07/2015 at 14:54. Pushed by cullmann into branch 'master'. add CartoCSS hl by Lukas Sommer renamed to carto-css.xml + added the test + removed the mime-type, else we might get clashs with normal CSS A +227 -0 autotests/input/syntax/carto-css/results/test.mss.reference.html A +213 -0 autotests/input/syntax/carto-css/test.mss A +405 -0 src/syntax/data/carto-css.xml http://commits.kde.org/ktexteditor/e87d51f431260dff77a30ed439cfafda92f64b95