Upvote Upvoted 0 Downvote Downvoted
cfg formatting is all fucked up?
posted in Q/A Help
1
#1
0 Frags +

looks like this

http://puu.sh/ld4ss/3f55f96f9b.png

all the hud .res files and stuff are like that too. obviously makes editing them extremely annoying. pls help

looks like this [img]http://puu.sh/ld4ss/3f55f96f9b.png[/img]

all the hud .res files and stuff are like that too. obviously makes editing them extremely annoying. pls help
2
#2
47 Frags +

use notepad++

use notepad++
3
#3
-6 Frags +

or wordpad

or wordpad
4
#4
18 Frags +

Windows uses '\r\n' as a line terminator whereas Linux uses '\n'. This means that to make a new line in a .txt file on Windows the line is ended with '\r\n' and Windows (through notepad) will display any text after a '\r\n' on the line below the previous line. The same applies to Linux and Linux text editors with the character '\n'. However some programs such as Notepad++ will be fine reading either format and will end lines with '\n' by default. What you've got there is a file with lines terminated by '\n' being read by a program that only considers a new line when it reads '\r\n'.

('\r' is a single character called carriage return and '\n' is a single character called newline)

Windows uses '\r\n' as a line terminator whereas Linux uses '\n'. This means that to make a new line in a .txt file on Windows the line is ended with '\r\n' and Windows (through notepad) will display any text after a '\r\n' on the line below the previous line. The same applies to Linux and Linux text editors with the character '\n'. However some programs such as Notepad++ will be fine reading either format and will end lines with '\n' by default. What you've got there is a file with lines terminated by '\n' being read by a program that only considers a new line when it reads '\r\n'.

('\r' is a single character called carriage return and '\n' is a single character called newline)
5
#5
0 Frags +

hey hes back

hey hes back
6
#6
2 Frags +

I'm a fan of atom for config editing, it adds a right click context button for opening all the files in a folder as a "project". It will also handle line endings swimmingly.

I'm a fan of [url=https://atom.io/]atom[/url] for config editing, it adds a right click context button for opening all the files in a folder as a "project". It will also handle line endings swimmingly.
7
#7
5 Frags +

http://www.sublimetext.com/3

http://www.sublimetext.com/3
8
#8
1 Frags +
janedoeuse notepad++

thx this works

[quote=janedoe]use notepad++[/quote]

thx this works
9
#9
0 Frags +
AndKennethI'm a fan of atom for config editing, it adds a right click context button for opening all the files in a folder as a "project". It will also handle line endings swimmingly.

Just tried it out.

It's pretty awesome, has a gigant amount of functions whilst being very light and responsive, and the layout is marvelous. definitely replacing notepad++ with this.

thanks andkenneth.

[quote=AndKenneth]I'm a fan of [url=https://atom.io/]atom[/url] for config editing, it adds a right click context button for opening all the files in a folder as a "project". It will also handle line endings swimmingly.[/quote]

Just tried it out.

It's pretty awesome, has a gigant amount of functions whilst being very light and responsive, and the layout is marvelous. definitely replacing notepad++ with this.

thanks andkenneth.
10
#10
-1 Frags +

The whole Atom vs Sublime Text discussion is interesting, but the bottom line is that they both will be more than good for editing tf2 configs. Overkill even, compared to Notepad++

1. Atom is free, Sublime is Winrar Free (you get a rare popup asking you to upgrade).
2. Sublime has the bigger community with more easily found information about it
3. Sublime has far better performance.
4. Atom has likely more customization, as it is a open sourced project and advertised as totally hackable.
5. Atom has nice little features in its UI that make life easier.

The whole Atom vs Sublime Text discussion is interesting, but the bottom line is that they both will be more than good for editing tf2 configs. Overkill even, compared to Notepad++

1. Atom is free, Sublime is Winrar Free (you get a rare popup asking you to upgrade).
2. Sublime has the bigger community with more easily found information about it
3. Sublime has far better performance.
4. Atom has likely more customization, as it is a open sourced project and advertised as totally hackable.
5. Atom has nice little features in its UI that make life easier.
11
#11
-1 Frags +

I was about to say "unless there's some syntaxing I don't know, anything above n++ is a bit silly" but actually googling brought up CFG syntaxing for sublime text, I'm dumb

https://packagecontrol.io/packages/CFG%20Configuration%20Syntax%20Highlighting

also since I now realized you can just do this, I found one someone also made for n++ but unfortunately I can't seem to find one for atom, idk

I was about to say "unless there's some syntaxing I don't know, anything above n++ is a bit silly" but actually googling brought up CFG syntaxing for sublime text, I'm dumb

https://packagecontrol.io/packages/CFG%20Configuration%20Syntax%20Highlighting

also since I now realized you can just do this, [url=https://np.reddit.com/r/truetf2/comments/1cip2e/cfg_a_syntax_highlighter_for_tf2_scripting_xpost/]I found one someone also made for n++[/url] but unfortunately I can't seem to find one for atom, idk
12
#12
1 Frags +

http://www.teamfortress.tv/8782/4s-tf2-script-editor

That's pretty good for cfg editing albeit a bit out dated

http://www.teamfortress.tv/8782/4s-tf2-script-editor

That's pretty good for cfg editing albeit a bit out dated
13
#13
-1 Frags +

None of these work with atom?

None of these work with atom?
14
#14
0 Frags +

Anyone mind helping me with sublime text?

i install the themes but they don't come out like they're supposed to...like, colors change overall but the ui keeps looking the same. i'm almost sure i'm doing it correctly but maybe i'm not, because so far it's been a program way more complicated than atom and notepad++

referring to this theme:
https://packagecontrol.io/packages/Theme%20-%20Spacezero

Anyone mind helping me with sublime text?

i install the themes but they don't come out like they're supposed to...like, colors change overall but the ui keeps looking the same. i'm [b]almost[/b] sure i'm doing it correctly but maybe i'm not, because so far it's been a program way more complicated than atom and notepad++

referring to this theme:
https://packagecontrol.io/packages/Theme%20-%20Spacezero
15
#15
-1 Frags +
QuertAnyone mind helping me with sublime text?

i install the themes but they don't come out like they're supposed to...like, colors change overall but the ui keeps looking the same. i'm almost sure i'm doing it correctly but maybe i'm not, because so far it's been a program way more complicated than atom and notepad++

referring to this theme:
https://packagecontrol.io/packages/Theme%20-%20Spacezero

Did you install manually or did you use package control? It'd be easier to use package control.

[quote=Quert]Anyone mind helping me with sublime text?

i install the themes but they don't come out like they're supposed to...like, colors change overall but the ui keeps looking the same. i'm [b]almost[/b] sure i'm doing it correctly but maybe i'm not, because so far it's been a program way more complicated than atom and notepad++

referring to this theme:
https://packagecontrol.io/packages/Theme%20-%20Spacezero[/quote]

Did you install manually or did you use package control? It'd be easier to use package control.
16
#16
0 Frags +

soz for revive but is there any sublime text pros here that knows what theme and syntax this is?

http://i.imgur.com/FW7PuY2.png

soz for revive but is there any sublime text pros here that knows what theme and syntax this is?

[img]http://i.imgur.com/FW7PuY2.png[/img]
Please sign in through STEAM to post a comment.