Results 1 to 5 of 5

Thread: [HowTo] Enable Cod-Support on ST

  1. #1
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts

    [HowTo] Enable Cod-Support on ST

    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]->[Browse packages...]




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





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




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



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


    Attachment 404

    install the same way!

    preview:










    (its not perfect, but it looks TIIIMES better than play white text :)
    Last edited by serthy; 20th August 2013 at 19:43.

  2. The Following 2 Users Say Thank You to serthy For This Useful Post:

    kung foo man (20th August 2013),Tally (20th August 2013)

  3. #2
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Wow! That looks like a good code editor. I will have to check it out.

    Thanks!

  4. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Looks nice, but Notepad++ ftw
    timescale 0.01

  5. #4
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    >>>Attachment 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 ^^
    Last edited by serthy; 20th August 2013 at 22:36.

  6. #5
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    ***UPDATED***

    >>>Attachment 428<<<




    readme.txt
    Code:
    	* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
    
    		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
    Last edited by serthy; 7th September 2013 at 19:26. Reason: added preview

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •