From 33b86f2e5d1df426fb14d67c93a6b51594ea72ab Mon Sep 17 00:00:00 2001 From: Jake Russo Date: Tue, 22 Dec 2015 08:46:11 -0600 Subject: [PATCH] Add customization tips --- Atom-instructions.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Atom-instructions.md b/Atom-instructions.md index 58a7a48..d1f7520 100644 --- a/Atom-instructions.md +++ b/Atom-instructions.md @@ -8,4 +8,15 @@ atom-text-editor { 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) \ No newline at end of file +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: + +``` +atom-text-editor::shadow .string.quoted, +atom-text-editor::shadow .string.regexp { + -webkit-font-feature-settings: "liga" off, "calt" off; +} +``` + +If there is any other place that you find you do not want to see ligatures, place your cursor on the location, hit `Ctrl+Alt+Shift+P` and add the bottom-most selector listed in the popup notification to the rule above. \ No newline at end of file