Atom Editor: Unterschied zwischen den Versionen
Aus Wikizone
Steff (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „Liste der Syntax Zuweisungen Konsole öffnen cmd alt i atom.grammars.getGrammars().map(function (grammar) { console.log(grammar.scopeName); });“) |
Steff (Diskussion | Beiträge) |
||
| Zeile 1: | Zeile 1: | ||
| − | + | == Syntax FileType Zuweisungen == | |
| + | |||
| + | http://flight-manual.atom.io/using-atom/sections/basic-customization/#customizing-language-recognition | ||
| + | |||
| + | === Zuweisungen finden === | ||
Konsole öffnen cmd alt i | Konsole öffnen cmd alt i | ||
| + | |||
atom.grammars.getGrammars().map(function (grammar) { console.log(grammar.scopeName); }); | atom.grammars.getGrammars().map(function (grammar) { console.log(grammar.scopeName); }); | ||
| + | |||
| + | config.cson Beispiel | ||
| + | <pre> | ||
| + | '*': | ||
| + | core: | ||
| + | customFileTypes: | ||
| + | 'source.coffee': [ | ||
| + | 'foo' | ||
| + | ] | ||
| + | </pre> | ||
| + | <pre> | ||
| + | "*": | ||
| + | core: | ||
| + | customFileTypes: | ||
| + | "text.html.php": [ | ||
| + | "inc" | ||
| + | ] | ||
| + | </pre> | ||
Version vom 19. April 2017, 18:53 Uhr
Syntax FileType Zuweisungen
Zuweisungen finden
Konsole öffnen cmd alt i
atom.grammars.getGrammars().map(function (grammar) { console.log(grammar.scopeName); });
config.cson Beispiel
'*':
core:
customFileTypes:
'source.coffee': [
'foo'
]
"*":
core:
customFileTypes:
"text.html.php": [
"inc"
]