Jump to content
Sign in to follow this  
pyro05x

Syntax Highlighting for SQF and SQM/EXT

Recommended Posts

first of all i have to say that i'm not responsible if you eff up your computer while following my instructions. 'nuff said.

ok. i zipped up the files and put them on my web server. they can be downloaded here.

Instructions for Notepad++:

1. extract the armaLang.xml file from the zip file to somewhere you can find easily

2. Launch Notepad++

3. Open armaLang.xml which was extracted to the folder you're supposed to find easily

4. While you have this open, click on the file menu and open...

5. browse to the folder where you have Notepad++ installed. (ex. C:\Program Files\Notepad++).

6. Open up 'userDefineLang.xml'.

7a. If the file does not exist: add <span style='color:blue'><NotepadPlus></span> at the beginning of the file and <span style='color:blue'></NotepadPlus></span> at the end. save armaLang.xml into the above directory as this name: userDefineLang.xml . continue at step 12.

7b. If the file exists: click on the tab that says 'armaLang.xml'.

8. Go to Edit > Select All. then go to Edit > Copy

9. Switch back to userDefineLang.xml

10. go the the very very end of the file and put your cursor (not your pointer but the text insertion point) just before the <span style='color:blue'></NotepadPlus></span> and Edit > Paste.

11. Save.

12. close Notepad++ then re-load it.

you're finished!

Instructions for SciTE

1. Extract 'sqf.properties' and 'sqm.properties' to your main SciTE directory. (the one where SciTE.exe or Sc1.exe can be found.)

2. Load up SciTE.

3. under the Options menu, click on 'Open Global Options File'

4. scroll down a few hundred lines until you see a bunch of lines that start with $(filter.blahblah...

5. insert these 2 lines without screwing up any other lines:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">$(filter.sqf)\

$(filter.sqm)\

6. ok now scroll down a bunch more and find the lines that look like Pe&rl|pl||\ and P&HP|php||\

7. put these lines somewhere in there without screwing up any other lines:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">SQF|sqf||\

SQM/EXT|sqm||\

8. now scroll down to the end where you see a bunch of imports.

9. paste these lines at the end of the file:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">import sqf

import sqm

10. Save. Close SciTE. Load SciTE back up again and you're done.

I hope you all get some use out of these. Send a pm or post a reply if you find them very useful. I like feedback. Notepad++ is currently my favorite for editing mission files. The explorer and favorites windows and RegEx search utilities are awesome.

I know there are a few bugs in the Notepad++ syntax, but that's because of the limitations of the user define language system. Free software has yet to be perfected, but it gets the job done and gets it done just as well as pay software.

EDIT: fixed notepad++ instructions for when the file does not exist.

Share this post


Link to post
Share on other sites
5. browse to the folder where you have Notepad++ installed. (ex. C:\Program Files\Notepad++).

6. Open up 'userDefineLang.xml'.

Slight problem with these instructions, which I found. The NotePad++ Setup program has an option "Don't use %APPDATA%". It's unticked by default.

If you didn't tick this option upon installation, then all config files will go to your "Application Data" folder here instead, not to your Install Folder:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">C:\Documents and Settings\<Your Profiel Name>\Application Data\Notepad++

Thanks for the syntax highlighting, pyro05x. Finally worked it out.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×