saltyfireball342 downloadsEdit non-markdown text files (code, config, data) directly with syntax highlighting, line numbers, and word wrap.
Edit non-markdown text files (code, config, data files) directly in Obsidian with syntax highlighting, line numbers, and word wrap.
This plugin is available in the official Obsidian community plugin directory. Install it from Settings > Community plugins > Browse and search for "Code Editor" or "Code Editor by saltyfireball".
Once enabled, the plugin automatically handles supported file types. Simply open any supported file and it will open in the code editor.
Code: js, ts, jsx, tsx, py, rb, go, rs, java, c, cpp, h, cs, php, swift, kt, scala, lua, pl, r, m, mm
Config/Data: json, yaml, yml, toml, xml, ini, env, conf
Web: html, htm, css, scss, sass, less
Shell/Scripts: sh, bash, zsh, fish, ps1, bat, cmd
Other: sql, graphql, dockerfile, makefile, gitignore, txt, log
This plugin uses highlight.js for syntax highlighting, licensed under the BSD 3-Clause License. Copyright (c) 2006, Ivan Sagalaev.