Supported Syntax Modes

Code Editor supports the following syntax modes:

Note: While Code Editor supports the ability to edit the following filetypes, it cannot preview or compile files that require a live server. (Like PHP, SASS, or Objective-C, for example.)

  • Apache
  • C
  • CoffeeScript
  • CSS
  • Diff
  • Go
  • Haml
  • HTML
  • HTML (Django)
  • HTML (ERB)
  • HTML (Tumblr)
  • INI
  • Java
  • Javascript
  • LESS
  • Lua
  • Markdown
  • Objective-C
  • Objective-J
  • Perl
  • PHP
  • Plain Text
  • Python
  • Ruby
  • Rust
  • Sass
  • SCSS
  • Scheme
  • Shell Script
  • SQL
  • Strings
  • Swift
  • TypeScript
  • XML
  • YAML

Adding a custom Syntax Mode

There are other languages out there that use identical syntax modes of languages we support, but the file extension may be different thereby confusing Code Editor. Here’s where Custom Syntax Modes come in.

Tap Code Editor’s Gear icon on the sites page to open Settings, then tap Custom Syntax Modes. From here, hit the plus button to add a new mode, choosing the file extension and existing Syntax Mode to use.

This article was last updated on October 4, 2019