Boostnote: Code blocks do not have monospace fonts

Created on 12 Jan 2018  路  6Comments  路  Source: BoostIO/Boostnote

image

Also I want to change font of code only to "Fira Code", how do I do that?

Also there is a weird gray box in upper left corner of text editor area. Its there in snippets also.

Most helpful comment

I support this idea.

All 6 comments

Hi @SMUsamaShah , you can change the font family from Preferences.

screen shot 0030-01-15 at 7 16 22 am
screen shot 0030-01-15 at 7 16 32 am

The wired grey box is not reproduced for my environment(macOS / Boostnote v0.8.20). Could you tell me your one?

@kazup01 If I change Preview Font Family to let say 'Fira Code' (a monospace font), it changes the whole preview to 'Fira Code' instead of only the code fences.

I am on Windows 10 / Boostnote v0.8.20.

I ended up modifying the theme css file like .cm-s-dracula {font-family: 'Fira Code'; } but this doesn't feel right.

There should be an option to set the font of only code fences.

I support this idea.

You can change the style of the preview in the setting now. Goto setting -> interface -> scroll down at the bottom -> check Allow custom css for preview and enter your css like that bellow:

image

Result:
image

For those who use new version of Boosts Note (0.1.4).

Change to Fira Code !important at line 212

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NourEldin275 picture NourEldin275  路  3Comments

gavvvr picture gavvvr  路  3Comments

Rokt33r picture Rokt33r  路  3Comments

croulibri picture croulibri  路  3Comments

cyber-arsenull picture cyber-arsenull  路  3Comments