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:
- Download the XML file
- Open Notepad++
- Click on the Language menu
- 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
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
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!
https://github.com/gustavnikolaj/sublimetext2-csgo
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!
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.
technothug_thanks silky
Aye, hope it helps!
[quote=technothug_]thanks silky[/quote]
Aye, hope it helps!
imo 4script is better for cfgs
imo 4script is better for cfgs
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
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.
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! :)