The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.15 (Linux)
File Line Function
/showthread.php 906 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Syntax highlighting for Gedit
#1
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]
[Image: XvN5CTW.png] [Image: UYXyyMS.png]


Messages In This Thread
Syntax highlighting for Gedit - by Simbax - 07-31-2017, 10:48 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)