Search code examples
android-studiointellij-ideaphpstormwebstorm

Is it possible to put attribute names in a different font than other text in WebStorm, PhpStorm, etc..?


I'm trying to generate this effect, see as attribute names are in a different font style how to achieve this but in JetBrains IDEs:

enter image description here


Solution

  • In the current versions of the JetBrains IDEs, the text in the editor is always displayed in a single font. It's possible to use different font styles, such as bold and italic, for different elements, but it's not possible to use an entirely different font.

    (Given that different fonts have different letter heights, allowing that would likely lead to weird effects when text that needs to be highlighted with another font is added or removed from the file you're editing.)