Upvote Upvoted 15 Downvote Downvoted
Simple Notepad++ Folding for cfg and res files
posted in Customization
1
#1
0 Frags +

I searched the forums for something of the sort and didn't find anything.
Today I decided to mess with the Notepad++ UDL v2.1.0.12 (User Defined Language). I made a simple syntax file for Notepad++ to fold code and comments.
I didn't "teach" it how to fold comments or which comments to fold, I used a notation to detect comments you want to fold.
It's really nothing too fancy, but it could be of use to someone editing HUDs, who currently doesn't use any syntax highlighting.
Also added some of the most common commands, like exec, bind, echo and some variables like tf_*, hud_* and fov_* for editing cfgs.
There is an example file along with the XML.
Repo here: GitHub

To install:

  1. Download the XML file
  2. Open Notepad++
  3. Click on the Language menu
  4. Click on Define your language and then Import

~Silky

I searched the forums for something of the sort and didn't find anything.
Today I decided to mess with the Notepad++ UDL v2.1.0.12 (User Defined Language). I made a simple syntax file for Notepad++ to fold code and comments.
I didn't "teach" it how to fold comments or which comments to fold, I used a notation to detect comments you want to fold.
It's really nothing too fancy, but it could be of use to someone editing HUDs, who currently doesn't use any syntax highlighting.
Also added some of the most common commands, like exec, bind, echo and some variables like tf_*, hud_* and fov_* for editing cfgs.
There is an example file along with the XML.
Repo here: [url=https://github.com/SiIky/TF2-Guide/tree/master/Source-Scripting]GitHub[/url]

To install:
[olist]
[*] Download the XML file
[*] Open Notepad++
[*] Click on the Language menu
[*] Click on Define your language and then Import
[/olist]

~Silky
2
#2
1 Frags +
comic sans font

nice

but yeah, this is a nice idea. personally i changed comments to green and added alias as a command

[quote]comic sans font[/quote]

nice

but yeah, this is a nice idea. personally i changed comments to green and added alias as a command
3
#3
0 Frags +
Gemmellnesscomic sans font
nice

but yeah, this is a nice idea. personally i changed comments to green and added alias as a command

IK IK xD As I said I was just fooling around... Chose a random font just because, changed a few colors, added some sexy Italic and done.
The comments idea come from the way I arrange stuff on my CFGs.

I don't intend to do anything more to it, so if you add something you think its worth it you can make a PR. Or not, just fork it!

[quote=Gemmellness][quote]comic sans font[/quote]

nice

but yeah, this is a nice idea. personally i changed comments to green and added alias as a command[/quote]


IK IK xD As I said I was just fooling around... Chose a random font just because, changed a few colors, added some sexy [i]Italic[/i] and done.
The comments idea come from the way I arrange stuff on my CFGs.

I don't intend to do anything more to it, so if you add something you think its worth it you can make a PR. Or not, just fork it!
4
#4
8 Frags +

https://github.com/gustavnikolaj/sublimetext2-csgo

https://github.com/gustavnikolaj/sublimetext2-csgo
5
#5
0 Frags +
conductorhttps://github.com/gustavnikolaj/sublimetext2-csgo

dang thats fancy lookin.

Thanks for the link!

[quote=conductor]https://github.com/gustavnikolaj/sublimetext2-csgo[/quote]

dang thats fancy lookin.

Thanks for the link!
6
#6
1 Frags +
DanceNumberconductorhttps://github.com/gustavnikolaj/sublimetext2-csgo
dang thats fancy lookin.

Thanks for the link!

Not sure if you're talking about Sublime-Text or the actual color scheme... Either way, I have to agree, however my syntax-file wasn't supposed to look good but rather to be functional! It can easily be modified to have "pretty" colors.

[quote=DanceNumber][quote=conductor]https://github.com/gustavnikolaj/sublimetext2-csgo[/quote]

dang thats fancy lookin.

Thanks for the link![/quote]

Not sure if you're talking about Sublime-Text or the actual color scheme... Either way, I have to agree, however my syntax-file wasn't supposed to look good but rather to be functional! It can easily be modified to have "pretty" colors.
7
#7
2 Frags +

thanks silky

thanks silky
8
#8
1 Frags +
technothug_thanks silky

Aye, hope it helps!

[quote=technothug_]thanks silky[/quote]

Aye, hope it helps!
9
#9
0 Frags +

imo 4script is better for cfgs

imo 4script is better for cfgs
10
#10
0 Frags +
conductorhttps://github.com/gustavnikolaj/sublimetext2-csgo

I can do something similar for Emacs, if anyone is interested

[quote=conductor]https://github.com/gustavnikolaj/sublimetext2-csgo[/quote]

I can do something similar for Emacs, if anyone is interested
11
#11
3 Frags +

i haven't tried this but if you can get from

"HudPlayerHealth"
{
al;dkasldk
a;klsdja;lk
alkjdsalk
}

to

[+]"HudPlayerHealth"

I would be so happy.

i haven't tried this but if you can get from

"HudPlayerHealth"
{
al;dkasldk
a;klsdja;lk
alkjdsalk
}

to

[+]"HudPlayerHealth"

I would be so happy.
12
#12
3 Frags +
vermsimo 4script is better for cfgs

I wasn't trying to compete with 4Script in any way.

flamei haven't tried this but if you can get from

"HudPlayerHealth"
{
al;dkasldk
a;klsdja;lk
alkjdsalk
}

to

[+]"HudPlayerHealth"

I would be so happy.

Yup it does exactly that. Open up the example file and see how it works there! :)

[quote=verms]imo 4script is better for cfgs[/quote]

I wasn't trying to compete with 4Script in any way.

[quote=flame]i haven't tried this but if you can get from

"HudPlayerHealth"
{
al;dkasldk
a;klsdja;lk
alkjdsalk
}

to

[+]"HudPlayerHealth"

I would be so happy.[/quote]

Yup it does exactly that. Open up the example file and see how it works there! :)
Please sign in through STEAM to post a comment.