The source editor is based on CodeMirror. It provides basic source code editing with unlimited undo/redo, syntax coloring and more.
Syntax Coloring
Syntax coloring is available for the following file types:
- html/xml
- css
- javascript
- php
- python
- sparql
- lua
Enable/disable Syntax Coloring in the Settings:
- (Firefox) Settings > Editor > Source Editor > Syntax Coloring (on/off)
Line Numbers
Enable/disable line numbers in the Settings:
- (Firefox) Menu > Settings > Editor > Source Editor > Line Numbers (on/off)
Tab Mode and Indentation
There are four different tab modes available:
- "indent". The default. Causes tab to adjust the indentation of the selection
- "spaces". Pressing tab inserts four spaces
- "default". Let the browser handle tab keys
- "shift". Pressing tab indents the current line (or selection) one indent unit deeper, pressing shift-tab, un-indents it
Set tab mode and indentation unit in the Settings:
- (Firefox) Menu > Settings > Editor > Source Editor > Tab Mode / Indent Unit