Skip to content

Instantly share code, notes, and snippets.

@rnarian
Last active May 22, 2019 21:23
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rnarian/83034781509761ae0cdb to your computer and use it in GitHub Desktop.
Save rnarian/83034781509761ae0cdb to your computer and use it in GitHub Desktop.
Atom scope name list
source.c
source.c++
source.coffee
source.css
source.css.less
source.css.scss
source.gfm
source.git-config
source.go
source.java
source.java-properties
source.js
source.js.rails source.js.jquery
source.js.regexp
source.json
source.litcoffee
source.makefile
source.objc
source.objc++
source.perl
source.plist
source.python
source.regexp.python
source.ruby
source.ruby.rails
source.ruby.rails.rjs
source.sass
source.shell
source.sql
source.sql.ruby
source.strings
source.toml
source.yaml
text.git-commit
text.git-rebase
text.html.basic
text.html.erb
text.html.jsp
text.html.php
text.html.ruby
text.hyperlink
text.junit-test-report
text.plain
text.plain.null-grammar
text.todo
text.xml
text.xml.plist
text.xml.xsl
@shuaibird
Copy link

How can I get the specific scope name?
I can't find the one for csv file here.

@8BitRobot
Copy link

8BitRobot commented Jan 5, 2018

I'm pretty sure that the scope for C++ files is source.cpp, not source.c++. I checked in the console (by running atom.workspace.getActiveTextEditor.getGrammar().scopeName) for multiple different extensions of C++ files, such as .c++ and .cpp and .cxx, and it showed the same scope for all of them, source.cpp.

@sukrosono
Copy link

I am missing the source for markdown file, also the github markdown

@8BitRobot how you do that? i try but get

Uncaught TypeError: atom.workspace.getActiveTextEditor.getGrammar is not a function
at :1:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment