]> de.git.xonotic.org Git - xonotic/xonotic.wiki.git/blobdiff - Programming-Tips.md
Add QC syntax highlighting section
[xonotic/xonotic.wiki.git] / Programming-Tips.md
index 2e4f2d86a47f482e341a7a04c11133f0a36375cb..0d2999fcd02da386d9c3f2271836b4fc32b50551 100644 (file)
@@ -53,6 +53,7 @@ prvm_breakpoint server
 prvm_globalwatchpoint server
 prvm_edictwatchpoint server
 ```
+
 ### Tool to find C symbols, functions, declarations and definitions inside source code
 
 For this purpose it's possible to use a text-based tool called [Cscope](https://en.wikipedia.org/wiki/Cscope) together with a GUI (it can be either an application or a plugin for a text editor).
@@ -60,7 +61,7 @@ For this purpose it's possible to use a text-based tool called [Cscope](https://
 #### Download / Installation
 
 * Download and install cscope with `pacman -S cscope`  
-Windows users must download the Windows version of cscope from https://code.google.com/archive/p/cscope-win32/downloads since the mingw version generates broken indices.
+Windows users must download the Windows version of cscope from https://code.google.com/archive/p/cscope-win32/downloads since the mingw version generates broken indices and put it into the main xonotic repo directory.
 
 * Download and install a cscope GUI or a plugin for your text editor / IDE. For example for jEdit there is a plugin called [CscopeFinder](http://plugins.jedit.org/plugins/?CscopeFinder).
 
@@ -69,4 +70,9 @@ Windows users must download the Windows version of cscope from https://code.goog
 #### Usage
 
 * Run `cscope_createindex.sh` to build cscope indices for both game (QC code) and Darkplaces (C code). This step must be repeated every time you do some code changes.  
-The indices can now be used to browse code confortably with the cscope GUI of your choice.
\ No newline at end of file
+The indices can now be used to browse code confortably with the cscope GUI of your choice.
+
+### QC syntax highlighting:
+
+* For jEdit: [qc.xml](https://gitlab.com/terencehill/qc-syntax-highlighting-for-jedit/blob/master/qc.xml)
+* For Kate: [qc.xml](https://gist.github.com/DefaultUser/998f030ab41a9e8edf4a9f8e703c6350)
\ No newline at end of file