andrewbrg / codepad-chrome-app

An awesome multi-language IDE written in JavaScript, crafted for ChromeOS and released under the GNU general public license!
https://chrome.google.com/webstore/detail/code-pad-ide/adaepfiocmagdimjecpifghcgfjlfmkh
GNU General Public License v3.0
135 stars 86 forks source link

Ability to edit R #22

Open anzacsf2010 opened 5 years ago

anzacsf2010 commented 5 years ago

Hello, this is not an issue, more of a request to see if there was any plan to have R code show up just like we have for those other languages (PHP, Python, etc...), i.e., a way for the editor to recognize .r files and understand what keywords are, etc....

Andy.

coder0107git commented 1 year ago

Just for completeness new languages can be added if Ace supports the language in question (R in this case). Then add the format to manifest.json and src/settings/ace.modes.json. The explanation of the structure of ace.modes.json:

"yml": { "<-- The file extension",
  "icon": "devicon devicon-devicon-plain", "<-- The font icon class (see the font-awesome, font-devicon, and font-mfizz subfolders in the vendor folder)",
  "mode": "yaml", "<-- The Ace language mode"
  "name": "Yaml", "<-- The name displayed in the editor"
}