[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - Notepad++ BF42/BFV Syntax Highlighter

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Tue Apr 16, 2024 5:08 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Aug 17, 2009 12:30 pm 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany
As I use Notepad++ for code modding (and advise everyone to do so :) ), I created a BF42 language file, granting extensive syntax highlighting. I also included all BFV commands, so it should work 100% with BFV too.

The file:


Just extract it to your Notepad++ installation directory, overwrite existing file. But CAUTION: If you have already defined any user-defined languages, this will overwrite them! In this case you would have to open this downloaded file manually and just copy its contents to the end of your existing file.

If you now open .con and .inc files with Notepad++, they will automatically be linked to the BF42 "language" and show syntax highlighting as well as allows for autocompletion and the like. Great for better overall overview, but also makes it WAY easier to spot coding errors (as these won't be recognized as syntax and would appear black) as well.

You can change the highlight colors as you want by opening the "User defined Language" tab (the button with the little lightning on it) and then assigning your colors. I chose colors to fit to the light grey background I'm using (easier on the eyes than constant black-white contrast). Or just open the xml file directly with notepad and edit the Hex values to your preference.

Short legend:
light blue= Remarks
dark blue&bold=numbers and standard subfolder paths (objects, texture, init, skyandsun, terrain etc.)
red&bold = object class (Object, ObjectTemplate, Geometrytemplate etc.)
green = all "create" commands, opens a new tab for the following section (see the little box with "-" on the left of the line with "create" in it)
orange = property requiring specific input (names, links or coordinates)
purple = property requiring float input

Example:


Obviously there might be some small typos in the syntax, causing some commands not to light up properly, in this case, please report back so I can update.

_________________
Kampagne XI - Vereinte Achsenmächte


xFire: wgpsenshi


Last edited by Senshi on Mon Aug 17, 2009 3:54 pm, edited 1 time in total.

Top
 Profile Send private message E-mail  
 
PostPosted: Mon Aug 17, 2009 1:27 pm 
Offline
User avatar

Joined: Thu Oct 19, 2006 5:03 am
Posts: 1209
That sounds excellent :o

Three cheers for Senshi!

Hip Hip

_________________
Image

Image


Top
 Profile Send private message E-mail  
 
PostPosted: Mon Aug 17, 2009 3:13 pm 
Offline

Joined: Tue Nov 27, 2007 7:56 pm
Posts: 1226
Hurray,


Top
 Profile Send private message E-mail  
 
PostPosted: Mon Aug 17, 2009 4:37 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
Hip hip,

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Mon Aug 17, 2009 5:14 pm 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027
hurray!


Top
 Profile Send private message E-mail  
 
PostPosted: Mon Aug 17, 2009 5:30 pm 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
I wish I still modded. cause that's epic bro. epic 2.0.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Mon Aug 17, 2009 5:39 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
Same here...

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Mon Aug 17, 2009 5:58 pm 
Offline

Joined: Mon Aug 16, 2004 12:00 am
Posts: 2120
Nice. Things like this are great for catching typos too.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group