Code Editor for iPhone & iPad: Supported Languages
CodeMate is a source code editor for iPhone and iPad with syntax highlighting for Swift, Python, JavaScript, TypeScript, HTML, CSS, JSON, YAML, Markdown, and many other languages and file formats. It also recognizes files you might need to edit alongside your code, such as Dockerfiles, Terraform configuration, and SSH config files.
If you’re checking a Python script from your phone, updating a YAML config on your iPad, or reviewing a TypeScript change away from your desk, you can open the file and read it with the appropriate syntax highlighting.
What can you edit on iPhone and iPad?
Java, Kotlin, and Swift source files
Open a .java, .kt, or .swift file with syntax highlighting. Review a Java class on iPad, or make a quick change to a Swift source file on iPhone. CodeMate edits the source; it does not compile these files on the device.
Python, JavaScript, and TypeScript files
Use Python highlighting for .py scripts, JavaScript for .js files, and TypeScript or TSX for .ts and .tsx files. CodeMate does not run Python, Node.js, or TypeScript locally.
HTML, CSS, and Markdown
Edit .html and .css source, then use HTML Preview to see how the page renders. Use Markdown Preview to check the headings, lists, and links in a .md README without changing its source.
JSON, YAML, and XML
Open .json, .yaml, .yml, and .xml files with syntax highlighting, or use Structure Preview to explore nested data. JSONC, JSON5, JSON Lines, and Hjson also have their own highlighting modes; highlighting does not imply identical validation or preview support.
Go, Rust, and server configuration
Edit .go and .rs source files, review a Dockerfile or Terraform configuration, or open files in an SSH workspace. Use the remote terminal if you need to run build or validation tools on the server.
Supported languages and file formats
| Category | Examples |
|---|---|
| Programming languages | Swift, Objective-C, Objective-C++, Python, C, C++, C#, Java, Kotlin, Go, Rust, Ruby, PHP, Dart, Lua, Zig |
| Web development | HTML, CSS, JavaScript, TypeScript, JSX, TSX, Vue, Svelte, Astro, SCSS |
| Data and configuration | JSON, JSON with Comments (JSONC), JSON5, JSON Lines (JSONL), Hjson, YAML, TOML, INI, XML, CSV, TSV, .env files |
| Shell and infrastructure | Shell scripts, Fish, PowerShell, Dockerfile, Makefile, CMake, Terraform, HashiCorp HCL, Nginx, SSH Config, systemd units |
| Databases and APIs | SQL, PL/SQL, GraphQL, HTTP, Protocol Buffers |
| Documentation | Markdown, MDX, AsciiDoc, reStructuredText, LaTeX, Typst |
| Version control | Diff files, CODEOWNERS, Git commit messages, Git rebase messages |
These are common examples. See the full syntax list below. To check a less common language or format, search for it in CodeMate’s language picker. Formats such as JSON, JSONC, JSON5, and JSON Lines have separate syntax options, so you can select the one that matches your file.
How to change syntax highlighting in CodeMate
CodeMate can select a syntax based on the file’s extension or name. When a file has no extension, uses an unusual name, or opens with the wrong highlighting, you can choose a syntax manually:
- Open the file in the editor.
- Tap the document title at the top to open the language picker.
- Search for the language or format you want, then select it.
For example, if a configuration file opens as plain text, choose YAML to make its keys, values, and comments easier to read. Changing the syntax changes how CodeMate displays the file; it does not convert or rename it.
Syntax highlighting, preview, and validation are different
Syntax highlighting makes code and configuration files easier to read. It doesn’t check whether a program compiles or whether a configuration is valid.
For supported files, CodeMate also offers separate tools: Markdown preview renders the document, HTML preview shows the page, and JSON, YAML, and XML have structured previews and validation. Not every syntax in the language picker has a corresponding preview or validator.
Preview JSON, YAML, and XML as a tree
Syntax highlighting helps you read the source. Structure Preview gives you a different view: an expandable tree of the same document. Collapse large sections to see the overall layout, then expand a branch to inspect a nested value or element.
Use it to find a setting in a YAML configuration, inspect an object in a JSON response, or follow the nesting in an XML document. The preview does not rewrite your source file.
Browse and edit remote files over SSH
Connect to a remote server over SSH from iPhone or iPad. Browse the remote folder tree, open an existing file in the editor, and save your changes back to the server. This is handy for updating a configuration file or fixing a script without downloading and uploading it manually.
Any commands you run in the built-in SSH terminal execute on the remote host, not on your iPhone or iPad.
Full list of supported syntax modes
The CodeMate language picker includes the 212 syntax modes listed below. This includes programming languages, file formats, and special-purpose modes such as Git commit messages. Internal grammar rules that are not selectable are not counted.
A-C
ABAP, ActionScript, Ada, Angular HTML, Angular TypeScript, Apache Conf, Apex, APL, AppleScript, Ara, AsciiDoc, ASP.NET Razor, Assembly, Astro, AWK, Ballerina, Batch File, Beancount, Berry, BibTeX, Bicep, Blade, C, C#, C++, Cadence, Clarity, Clojure, Closure Templates, CMake, COBOL, CODEOWNERS, CodeQL, CoffeeScript, Common Lisp, Coq, Crystal, CSS, CSV, CUE, Cypher
D-G
D, Dart, DAX, Desktop, Diff, Dockerfile, dotEnv, Dream Maker, Edge, Elixir, Elm, Emacs Lisp, ERB, Erlang, F#, Fennel, Fish, Fluent, Fortran (Fixed Form), Fortran (Free Form), GDResource, GDScript, GDShader, Genie, Gettext PO, Gherkin, Git Commit Message, Git Rebase Message, Gleam, Glimmer JS, Glimmer TS, GLSL, Gnuplot, Go, GraphQL, Groovy
H-L
Hack, Handlebars, HashiCorp HCL, Haskell, Haxe, Hjson, HLSL, HTML, HTML (Derivative), HTTP, HXML, Hy, Imba, INI, Java, JavaScript, Jinja, Jison, JSON, JSON Lines, JSON with Comments, JSON5, Jsonnet, JSSM, JSX, Julia, Kotlin, Kusto, LaTeX, Lean 4, Less, Liquid, Log file, Logo, Lua, Luau
M-P
Makefile, Markdown, Marko, MATLAB, MDC, MDX, Mermaid, Mojo, Move, Narrat Language, Nextflow, Nginx, Nim, Nix, nushell, Objective-C, Objective-C++, OCaml, Pascal, Perl, PHP, PL/SQL, PostCSS, PowerQuery, PowerShell, Prisma, Prolog, Protocol Buffer 3, Pug, Puppet, PureScript, Python
Q-S
QML, QML Directory, Qt Style Sheets, R, Racket, Raku, RegExp, Rel, reStructuredText, RISC-V, Ruby, Ruby Haml, Rust, SAS, Sass, Scala, Scheme, SCSS, ShaderLab, Shell, Shell Session, Smalltalk, Solidity, SPARQL, Splunk Query Language, SQL, SSH Config, Stata, Stylus, Svelte, Swift, Systemd Units, SystemVerilog
T-Z
Tasl, Tcl, Templ, Terraform, TeX, TOML, TSV, TSX, Turtle, Twig, TypeScript, TypeScript with Tags, TypeSpec, Typst, V, Vala, Verilog, VHDL, Vim Script, Visual Basic, Vue, Vue HTML, Vyper, WebAssembly, Wenyan, WGSL, Wikitext, Windows Registry Script, Wolfram, XML, XSL, YAML, ZenScript, Zig
Frequently asked questions
Can I edit Swift or Python files on an iPhone?
Yes. CodeMate can open and edit .swift and .py files with syntax highlighting. It does not compile Swift or run Python locally.
Does CodeMate highlight YAML and JSON on iPad?
Yes. Both formats are supported on iPhone and iPad. If you’re editing a JSON file with comments or trailing commas, choose the syntax that matches the format your project uses, such as JSONC or JSON5.
Can I edit code on a remote server?
CodeMate supports browsing and editing remote files over SSH. If you run a command in the SSH terminal, it runs on the remote server, not on your iPhone or iPad.