A simple cross-platform syntax-highlighting text editor with a distraction-free, fullscreen interface.
###Installation To install, use the following commands in your terminal under the root directory:
qmake CodeRoom.pro
make
Done! Launch by typing ./CodeRoom in the same folder.
###Using
-
Keyboard commands:
Ctrl + SSave
Ctrl + WSave As
Ctrl + OOpen
Ctrl + NNew Document
Ctrl + QQuit
EscapeQuit
Ctrl + HChoose Syntax Highlighting
Ctrl + ReturnCreate new line after the current (same as End + Return) -
QuickInsert keys:
F5toF12QuickInsert, as defined in syntax file
Ctrl + F5toF12Define new QuickInsert on desired key -
QuickInsert syntax:
First symbol: Defined separator, sep
\nNewline
\tTab
\sSpace (actual spaces are used as delimiters between separators
sepCursor location
sepsepWill be replaced by marked text, when command is pressed
sepsepsepWill be replaced by the current line, when command is pressed
sepsepsepsepWill be replaced by the current word, when command is pressed
\\nPlain text \n
\\tPlain text \t
\\sPlain text \s
###Syntax highlighting:
Use \s as space character.
Do not use \n in linespans, use restofline instead.
Freewords cannot contain symbols.
Priority: multibehindregexp > multiregexp > multilinespan > singlebehindregexp > singleregexp > restofline > singlelinespan > freewords > inlinewords
The lower a span appear in the document, the higher the priority. The above still apply though.
Use // to comment. Comment must not contain COLON. Comments must have a free line or another comment above it.