You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Make file type -> language mapping locally configurable #1718
It works fine. But this way registers an extension as the scope's (from the example as source.js) Grammar. This can be confusing for some extensions of Atom.
I wonder if this can reload the active views automatically, in case I have the file open already I want it to update and use the appropriate, new grammar I have just specified?
Even better, add the ".railsrc" file I was working in to a core list inside Atom :).
hm, after some Googling I have found .railsrc to actually be more of a plain text file that merely contains shell-like options on each line.
It seems the code I used from this post luca pette - Pry Everywhere uses the filename incorrectly, as the style I just found elsewhere is more prevalent.
Since this is Atom's default grammar, I will leave it untouched :).
Hate to reopen this discussion again, but this doesn't seem to be working in v1.8? Anyone else having issues with this? According to this thread, this should work:
Not working for me ever for rapid language which is mod extension:
customFileTypes:
"source.python": [
"mod"
]
What is really missing is the possibility to customize your own grammar and style. Like for new language or very old one. (RUST, Pascale, DELPHI, Basic..)
Having the possibilty to customize your own language would be pretty useful, and not using a setup of an existing one
Activity
nathansobo commentedon Mar 6, 2014
Not sure I understand.
probablycorey commentedon Mar 6, 2014
They could make a dummy language that with the extension and includes the grammar they want to extend. But that is pretty cumbersome.
Were you thinking of a config option like this:
kevinsawicki commentedon Mar 6, 2014
@probablycorey Yup, something like that.
rsanchezsaez commentedon Jul 14, 2014
+1.
It's really sad that Atom doesn't support this...
Case in point: adding
Podfileto Ruby syntax highlighting.rsanchezsaez commentedon Jul 20, 2014
If somebody wants a little StackOverflow reputation bounty, implement this and reply here. :D
Add support for user-configurable file types
xpol commentedon Aug 14, 2014
And with UI described in #1784 is nice.
ddaws commentedon Sep 16, 2014
👍 this would be a great feature.
hellerchr commentedon Oct 2, 2014
+1
steelbrain commentedon Nov 26, 2014
+1
steph643 commentedon Nov 30, 2014
+1
tomByrer commentedon Dec 13, 2014
Would be nice to add the following filetype to language-json please:
.jsbeautifyrc
(I'll keep adding to list as I find).
43 remaining items
derwaldgeist commentedon Dec 7, 2015
Thanks, I will try this!
jdnier commentedon Jan 10, 2016
@omnidan You have an extra set of brackets. Try this instead (survives restarting Atom):
omnidan commentedon Jan 10, 2016
@jdnier Thanks for the info 😄 Shouldn't it be
source.jsandjs-semanticthough (not the other way around)?oshliaer commentedon Feb 3, 2016
It works fine. But this way registers an extension as the scope's (from the example as
source.js) Grammar. This can be confusing for some extensions of Atom.emattias commentedon Feb 16, 2016
Is there support for extensionless files?
This doesn't work for me:
alexchandel commentedon Feb 17, 2016
As the confusion and abundant trailing comments make clear, there needs to be a GUI for this, just like the Keybindings GUI.
Pysis868 commentedon Mar 17, 2016
I wonder if this can reload the active views automatically, in case I have the file open already I want it to update and use the appropriate, new grammar I have just specified?
Even better, add the ".railsrc" file I was working in to a core list inside Atom :).
I have posted more information here: Atom - Discuss - Edit/Set File Associations
winstliu commentedon Mar 17, 2016
Feel free to do so by editing https://github.com/atom/language-ruby-on-rails/blob/master/grammars/ruby%20on%20rails.cson (I'm assuming
.railsrcis Ruby on Rails? If it's not just find the appropriate language repository) and submitting a PR.Pysis868 commentedon Mar 17, 2016
hm, after some Googling I have found
.railsrcto actually be more of a plain text file that merely contains shell-like options on each line.It seems the code I used from this post luca pette - Pry Everywhere uses the filename incorrectly, as the style I just found elsewhere is more prevalent.
Since this is Atom's default grammar, I will leave it untouched :).
omniacode commentedon Jun 20, 2016
Hate to reopen this discussion again, but this doesn't seem to be working in v1.8? Anyone else having issues with this? According to this thread, this should work:
customFileTypes: "source.pdt": [ "php" ]undercoverSG commentedon Jun 24, 2016
Not working for me ever for rapid language which is mod extension:
customFileTypes:
"source.python": [
"mod"
]
What is really missing is the possibility to customize your own grammar and style. Like for new language or very old one. (RUST, Pascale, DELPHI, Basic..)
Having the possibilty to customize your own language would be pretty useful, and not using a setup of an existing one
stijnsanders commentedon Jun 24, 2016
I'm using language-pascal for Delphi, which works kind-of OK.
undercoverSG commentedon Jun 27, 2016
Yes in that case it works, but for instance, if i do assembly, what will you use ?
The feature is pretty cool it is sure, but i'm wondering how to make my own syntax coloring for any language that have no common point with an other.
viktorsec commentedon Jul 11, 2016
+1