Back to LanguageTool Homepage - Privacy - Imprint

Cutomizing CSS

(Giang Lê Hoàng) #1


Can you please show me how to customize the way Language Tool detect errors instead of using just red-underline (custom color, highlight, font-size…). By this way, we can customize error’s detection for each rule individually.

I tried to create a rules.css file and change path in grammar.xml pointing to that css but it doesn’t work.


(Daniel Naber) #2

Are you talking about the web interface? That would require changes here, then needs to be called for the changes to become active.

(Giang Lê Hoàng) #3

No, I means LT’s stand-alone version on PC (I can see on grammar.xml has a .css file), so I think I can customize rules.css for changing errors detection’s color…(as in Text Studio), but it doesnt work.

(Mike Unwalla) #4

For background colours, you can use the ‘errorColors’ setting in the languagetool.cfg configuration file. A little more information is in

Here is an example:

For a list of the values that you can use for ‘type’, refer to

(Giang Lê Hoàng) #5

Thank you so much! This is exactly what I need.