PR:BF2 syntax files for text editors (Notepad++, etc.)

Making or wanting help making your own asset? Check in here
Post Reply
AfterDune
Retired PR Developer
Posts: 17093
Joined: 2007-02-08 07:19

PR:BF2 syntax files for text editors (Notepad++, etc.)

Post by AfterDune »

For those that use Notepad++ and others to edit .tweak and .con files, we've created a little syntax file that enables syntax coloring. It is much easier to read through lines of code that way.

The same can be achieved with other text editors of course.

Examples:
Image



How to install for Notepad++:
http://docs.notepad-plus-plus.org/index ... uage_files

Downloads:
http://files.realitymod.com/resources/B ... 20Dark.xml
http://files.realitymod.com/resources/BF2%20Dark.xml
Last edited by Mineral on 2019-03-20 20:24, edited 5 times in total.
Image
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: EditPlus syntax file for BF2

Post by Rhino »

Who uses editplus? :p

I personally use the Crimson editor which has had BF2 syntax for years although AM uses notepad++ which he made Syntaxes for.
Image
AfterDune
Retired PR Developer
Posts: 17093
Joined: 2007-02-08 07:19

Re: EditPlus syntax file for BF2

Post by AfterDune »

It's for whoever uses it. And I've been using it for like 10 years or so.
Image
temexter
Posts: 397
Joined: 2009-11-23 15:50

Re: EditPlus syntax file for BF2

Post by temexter »

[R-DEV]Rhino wrote:I personally use the Crimson editor which has had BF2 syntax for years although AM uses notepad++ which he made Syntaxes for.
I like np++, also used pfe for some time in history. And of course the awesome vi when in *nix shell, it's always there :)

Any links for working npp+ syntax file? Or is this one still valid: http://jg28senshi.jg.funpic.de/NPPlusBF42language.rar?
Image
ImageImageImage
User avatar
Senshi
PR:BF2 Developer
Posts: 356
Joined: 2010-04-29 10:44

Re: EditPlus syntax file for BF2

Post by Senshi »

Where did you find a link to THAT old file?

As it states in the filename, even, this is only syntax for BF42 and was created by me some years ago...it can be used for BF2 as well, but a lot of the added syntax is missing (and thus won't be highlighted), obviously.

Thanks to AfterDune for creating and offering this syntax. Text editors mostly are a matter of personal gusto, so it's good to have support for several of them.
pr|Zer0
Posts: 300
Joined: 2008-06-30 12:10

Re: EditPlus syntax file for BF2

Post by pr|Zer0 »

Im using notepad++ on which i added .con and .tweak extensions to python language coloring...works like a charm.
Image
pr|Zer0
Posts: 300
Joined: 2008-06-30 12:10

Re: EditPlus syntax file for BF2

Post by pr|Zer0 »

temexter wrote:I like np++, also used pfe for some time in history. And of course the awesome vi when in *nix shell, it's always there :)

Any links for working npp+ syntax file? Or is this one still valid: http://jg28senshi.jg.funpic.de/NPPlusBF42language.rar?
in Notepad++ go to preferences -> style configurator, click on python to select it and on the bottom line of the window, add extensions you want to associate with python style, separated by spaces.
Image

Uploaded with ImageShack.us
Image
AncientMan
Retired PR Developer
Posts: 5111
Joined: 2007-05-22 07:42

Re: EditPlus syntax file for BF2

Post by AncientMan »

I've had this syntax rolling on Notepad++ for a fair long while, works fine if anyone else wants it. Just extract it to (or merge it with the existing file) in "C:\Users\<user>\AppData\Roaming\Notepad++\userDefineLang.xml"

http://dl.dropbox.com/u/33586919/Notepa ... Syntax.zip
Image
temexter
Posts: 397
Joined: 2009-11-23 15:50

Re: EditPlus syntax file for BF2

Post by temexter »

'[R-DEV wrote:AncientMan;1704837']I've had this syntax rolling on Notepad++ for a fair long while, works fine if anyone else wants it. Just extract it to (or merge it with the existing file) in "C:\Users\<user>\AppData\Roaming\Notepad++\userDefineLang.xml"

http://dl.dropbox.com/u/33586919/Notepa ... Syntax.zip
Cheers m8, works like a charm...
Image
ImageImageImage
User avatar
Mineral
Retired PR Developer
Posts: 8533
Joined: 2012-01-02 12:37
Location: Belgium

Re: PR:BF2 syntax files for text editors (EditPlus, Notepad++, etc.)

Post by Mineral »

Given I needed this again but links were down, I extracted what I had on my PC and re-uploaded those. I think they were AM's :) Updated OP.
Image
AfterDune
Retired PR Developer
Posts: 17093
Joined: 2007-02-08 07:19

Re: PR:BF2 syntax files for text editors (Notepad++, etc.)

Post by AfterDune »

Visual Studio Code anyone? ;)
Image
User avatar
ALADE3N
PR:BF2 Developer
Posts: 574
Joined: 2016-02-13 17:34
Location: Philippines

Re: PR:BF2 syntax files for text editors (Notepad++, etc.)

Post by ALADE3N »

any Sublime Text?
Image
Post Reply

Return to “PR:BF2 Community Modding”