diff --git a/Atom-instructions.md b/Atom-instructions.md index e423e33..db58c93 100644 --- a/Atom-instructions.md +++ b/Atom-instructions.md @@ -4,24 +4,25 @@ To change your font to Fira Code, open Atom's settings (`cmd+,`), make sure the ## Ligatures -To enable ligatures, `Menu → Stylesheet...` +Ligatures are enabled by default in Atom 1.9 and above. + +To enable ligatures on older Atom versions (Atom 1.1 and newer), go to `Menu → Stylesheet...` ![](https://i.imgur.com/sulSOtK.png) and add `text-rendering` to `atom-text-editor`: -``` + +```css atom-text-editor { text-rendering: optimizeLegibility; } ``` -You’ll need Atom 1.1 or newer. - Beware that in some syntaxes **selected ligatures might not work**. This is usually a syntax parser/tokenization issue (e.g. `->` breaks into two symbols by JS/Ruby syntax highlighter). See issues [#63](https://github.com/tonsky/FiraCode/issues/63) and [#69](https://github.com/tonsky/FiraCode/issues/69) To turn off ligatures inside of strings and regular expressions you can add this to your stylesheet: -``` +```css atom-text-editor::shadow .string.quoted, atom-text-editor::shadow .string.regexp { -webkit-font-feature-settings: "liga" off, "calt" off;