How to set bold and italic fonts in the terminal and editor?


I know it’s probably weird, but I like to code with oblique or italic fonts.

I noticed here: How to un-italicize comments; it’s possible to edit the stylesheet and manipulate the appearance of the text.

I’d like to do the same kind of thing to make:

  • Regular text italic or oblique
  • Comments non-italic and/or bold.

use the following custom stylesheet

.ace_editor {
    font-style: italic;
.ace_editor .ace_comment {
    font-style: normal;
    font-weight: bold;

Depending on the font bold may cause issues with cursor alignment, if cursor position is wrong, either change the font, or remove the line with bold.

1 Like

That’s perfect, thanks.