PDA

View Full Version : [HowTo] Enable Cod-Support on ST



serthy
20th August 2013, 19:37
Sears!

Today I will show you how you enable the syntax highlighting for CoDScript & CoDMenu's on Sublime Text!
First of all, you really should checkout Sublime Text (3). Its an ultra fast (opens up in no-tme, searches the complete Doom3+Quake3 source code for 1 keyword in 5 secs ~> thousands of files, quadrillions of codelines!), really good looking (see yourself..) and powerful texteditor (multiple line edit, goto definition etc). And its free without any restrictions!

Download ST3: http://www.sublimetext.com/3

Okay, goto https://github.com/Ingramz/CoDScript-Sublime-Package and download the zipfile.
Open up ST and click on the top-tabs on [Preferences]->



401


Now an folder called Packages should open
Insert There the extracted *.zip file (CoDScript folder)



406



To set the current syntax highlighting click on the bottom-right corner and select CoDScript



402


to open all *.gsc files with CoDScript syntax highlighting, click again on the bottom right and select "Open all with current extension as..." -> CoDScript



403

I've done something similar quick and dirty for CoDMenu, download here:


[B]404

install the same way!

preview:



405








(its not perfect, but it looks TIIIMES better than play white text :)

Tally
20th August 2013, 19:48
Wow! That looks like a good code editor. I will have to check it out.

Thanks!

kung foo man
20th August 2013, 22:27
Looks nice, but Notepad++ ftw :D

serthy
20th August 2013, 22:32
>>>407<<<

- added more commands
- removed case sensitivity
- added different color for menuDef/itemDef

i tried n++, but returned to WinXP notepad again (i really need some fast scrolling)
and some months ago i discovered ST for me
i dont wanna miss its speed, stye, code-minimap and the multiple line cursors ^^

serthy
7th September 2013, 18:58
***UPDATED***

>>>428<<<

http://1.2.3.11/bmi/www7.pic-upload.de/07.09.13/3esmsl32ehn.png (http://img3.fotos-hochladen.net/uploads/unbenanntrsy1fgxp0d.png)


readme.txt

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

CoDScript & CoDMenu support for Sublime Text

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Serthy
xfire: serthy
mail: serthy@ymail.com
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Installation:

1. Download Sublime Text:
http://www.sublimetext.com/
2. Install Sublime Text
3. Open Sublime Text
then goto 'Preferences'-tab in the top bar
and select 'Browse packages...'
4. Extract the CoDMenu & CoDScript folder
in the popped up folder
5. Restart Sublime Text
6. Open a *.menu or *.gsc file
7. Choose in the bottom right corner the
CoDMenu or CoDScript language
8. Again hit the in the bottom right corner and select
'Open all with current extension as..' to
set the default language for the corresponding files

You can also use Indrek 'Ingram' Ardel CoDScript package, i just edited
the including one to my needs. All rights and credits goes to him.
You can find his work on GitHub:
https://github.com/Ingramz/CoDScript-Sublime-Package


Changelog:
08-20-2013: first attempt
09-07-2013: improved CoDMenu package:
- added almost every CoD2-*.menu identifier
- added menudef.h and menudefinitions.h defines