Colobot Forum - International Colobot Community
Syntax highlighting for Gedit - Printable Version

+- Colobot Forum - International Colobot Community (https://colobot.info/forum)
+-- Forum: [Archive] New forum (2015-2019) (https://colobot.info/forum/forumdisplay.php?fid=76)
+--- Forum: Colobot: Gold Edition Basics (https://colobot.info/forum/forumdisplay.php?fid=58)
+---- Forum: Workshop (https://colobot.info/forum/forumdisplay.php?fid=60)
+---- Thread: Syntax highlighting for Gedit (/showthread.php?tid=938)



Syntax highlighting for Gedit - Simbax - 07-31-2017

Warning: the following is just a loose translation from an old Polish thread.

[UNMAINTAINED][OLD]

The files were work in progress even then, but it may be a good starting point for someone to remake this "plugin".

Features:
  • Syntax highlighting for CBOT
  • Syntax highlighting for Scene
Lacking features:
  • categories in CBOT
  • categories in Scene
  • some keywords in CBOT
  • some keywords in Scene
Installation:
  1. Download scene.lang and/or cbot.lang.
  2. Put them in /usr/share/gtksourceview-X.0/language-specs/,  X is either 2 or 3 depending if you have Gedit 2 or 3. You need administrator privileges to do that.
Usage:
  1. Open a file with CBOT or Scene code.
  2. Set the syntax highlighting from menu: View -> Highlight mode -> Others -> Colobot scene or View -> Highlight mode -> Sources -> CBot.
File extensions:
Files with the following extensions should have the syntax highlighting set automatically.
  • .scene
  • .cbot
Screenshots (Kobalt theme):
[Image: Q9aaoLI.png]
[Image: cVS6L9q.png]