Sublime Forum

Removing Font Styles in Syntax

#1

Small detail, but it looks like the recent update added bold and/or at least italics styles to syntax. But I prefer not to have my syntax anything but normal font style. Does anyone know how to disable font styles in syntax without changing my font?

Example:

$user = new user();

In Sublime Text Build 2165 “user()” displays in italics

Any help is appreciated. Thank you!

0 Likes

#2

Open up your colorscheme (Preferences > Browse Packages > Colorscheme - Default > NAME_OF_COLORSCHEME.tmTheme).

Do a find and replace:

Find: Italic
Replace: Regular

1 Like

#3

Ah, so easy! Thanks for your help! :smiley:

0 Likes

#4

For some reason changing the setting in theme’s config did not work for me. However ther is even more straightforward way (and even safer, as never overwritten by future updates). In User preferences file add following:

"font_options": [
	"no_italic",
	"no_bold"
],

As described here: Font Style in Sublime text 3

Other options (copied from default preferences file):

// Valid options are "no_bold", "no_italic", "no_antialias", "gray_antialias",
    // "subpixel_antialias", "no_round" (OS X only), "gdi" (Windows only) and
    // "directwrite" (Windows only)
    "font_options": [],
2 Likes