Torsion in VS2012+ style (Dark theme)
by Nils Eikelenboom · 07/28/2014 (7:16 am) · 17 comments
Torsion is a development environment for creating TorqueScript based games and mods, or just an editor for TorqueScript files. Torsion's default syntax highlighting has a white background and distinguished colours. If you got used to Visual Studio 2012+ Dark theme and you'd like to have something similar in Torsion you can use this resource to make that happen.
Note: This will only change the syntax highlighting and code background, not the entire user interface!
So a significant part of Torsion will remain White/Light Grey unfortunately!

We're talking about Torsion 1.1.392 here:
1. Open C: / Program Files (x86) / Torsion / preferences.xml (or other location) with you favourite XML editor
2. Save a backup file in case you'd want to switch back one day :)
3. Replace line 1 - 36 with:
You might notice some slight differences with Visual Studio such as the color of local and global variables;
this to make the scripts a bit more clear. Just change it to whatever you prefer!
Update 2014-8-1:
- Brace match colours now with increased contrast for quicker scanning
- Call tip now readable (contrast increased)
- Default text slightly darker for more contrast with numbers and local vars
* Torsion is a product of Sickhead Games, LLC
* Visual Studio (R) 2012 is a product of Microsoft Corporation
Note: This will only change the syntax highlighting and code background, not the entire user interface!
So a significant part of Torsion will remain White/Light Grey unfortunately!

We're talking about Torsion 1.1.392 here:
1. Open C: / Program Files (x86) / Torsion / preferences.xml (or other location) with you favourite XML editor
2. Save a backup file in case you'd want to switch back one day :)
3. Replace line 1 - 36 with:
<TorsionPrefs> <DefaultFont>0;-13;0;0;0;400;0;0;0;0;3;2;1;49;Consolas</DefaultFont> <ReservedWords color="86, 156, 214">%this break case continue datablock default else false for function if local new or package package return singleton switch switch$ true while</ReservedWords> <ExportsColor>78, 201, 176</ExportsColor> <BgColor>30, 30, 30</BgColor> <DefaultColor>192, 192, 192</DefaultColor> <CommentColor>96, 139, 78</CommentColor> <StringColor>214, 157, 133</StringColor> <NumberColor>181, 206, 168</NumberColor> <OperatorsColor>180, 180, 180</OperatorsColor> <LocalsColor>178, 230, 219</LocalsColor> <GlobalsColor>189, 99, 197</GlobalsColor> <SelColor>180, 180, 180</SelColor> <SelBgColor>38, 79, 120</SelBgColor> <BraceMatchColor>78, 201, 176</BraceMatchColor> <BraceMatchBgColor>8, 8, 8</BraceMatchBgColor> <BraceMatchErrColor>255, 47, 47</BraceMatchErrColor> <CalltipColor>180, 180, 180</CalltipColor> <CalltipBgColor>64, 64, 64</CalltipBgColor> <CalltipHiColor>43, 145, 175</CalltipHiColor> <MarginColor>37, 37, 37</MarginColor> <MarginTextColor>43, 145, 175</MarginTextColor> <CodeFolding>true</CodeFolding> <CodeFoldingColor>128, 128, 128</CodeFoldingColor> <CodeCompletion>true</CodeCompletion> <EnhancedCompletion>true</EnhancedCompletion> <Position>1909,0,1190,1040</Position> <Maximized>true</Maximized> <ProjectSashWidth>227</ProjectSashWidth> <BottomSashHeight>211</BottomSashHeight> <UseTabs>false</UseTabs> <TabWidth>3</TabWidth> <LineWrap>false</LineWrap> <EdgeMarker>true</EdgeMarker> <EdgeMarkerColumn>80</EdgeMarkerColumn> <EdgeMarkerColor>64, 64, 64</EdgeMarkerColor>
You might notice some slight differences with Visual Studio such as the color of local and global variables;
this to make the scripts a bit more clear. Just change it to whatever you prefer!
Update 2014-8-1:
- Brace match colours now with increased contrast for quicker scanning
- Call tip now readable (contrast increased)
- Default text slightly darker for more contrast with numbers and local vars
* Torsion is a product of Sickhead Games, LLC
* Visual Studio (R) 2012 is a product of Microsoft Corporation
#2
07/29/2014 (4:53 am)
Nice work! Dark themes FTW :).
#3
07/29/2014 (12:45 pm)
Much better! thanks!
#4
07/30/2014 (6:15 am)
Good Job~~Nils~~
#5
- Brace match colours now with increased contrast for quicker scanning
- Call tip now readable (contrast increased)
- Default text slightly darker for more contrast with numbers and local vars
You can use the xml code above to update your settings if you like :)
07/31/2014 (11:44 pm)
I've made an update for better readability:- Brace match colours now with increased contrast for quicker scanning
- Call tip now readable (contrast increased)
- Default text slightly darker for more contrast with numbers and local vars
You can use the xml code above to update your settings if you like :)
#6
08/02/2014 (6:36 am)
Thanks for update..
#7
Win 7/8
At desktop you right click mouse button -> Personalize -> Basic and High Contrast Themes -> High Contrast Black
Then you will have a black background instead of a white in Solution Explore. The bars will be purple.
Enjoy your all mighty all black and purple Torsion with Nils(edited) Visual Studio Dark Theme as well.
Is it getting dark in here?
08/04/2014 (12:57 am)
For people who want the solution explorer to have a black background as well:Win 7/8
At desktop you right click mouse button -> Personalize -> Basic and High Contrast Themes -> High Contrast Black
Then you will have a black background instead of a white in Solution Explore. The bars will be purple.
Enjoy your all mighty all black and purple Torsion with Nils(edited) Visual Studio Dark Theme as well.
Is it getting dark in here?
#9
Enjoy your all mighty all black and purple Torsion with Nils' Visual Studio Dark Theme as well.
was the right way of expressing it... Man it it all too dark here :O)
08/04/2014 (11:06 am)
Ups... Sorry... Enjoy your all mighty all black and purple Torsion with Nils' Visual Studio Dark Theme as well.
was the right way of expressing it... Man it it all too dark here :O)
#10
EDIT: Actually, I'm going to do that right now :P.
08/11/2014 (3:59 am)
Now all we need is a userstyles.org/ dark theme for garagegames.com and we're all set...EDIT: Actually, I'm going to do that right now :P.
#11
Great idea Daniel, it really looks great!
Click here to convert this page
08/11/2014 (4:36 am)
Quote:Now all we need is a userstyles.org/ dark theme for garagegames.com and we're all set...
Great idea Daniel, it really looks great!
Click here to convert this page
#12
EDIT: whoah, that looks nice too Nils. I'm more a fan of grey than black though.
08/11/2014 (5:01 am)
And done! Not yet done: code blocks. It goes great with this GitHub theme.EDIT: whoah, that looks nice too Nils. I'm more a fan of grey than black though.
#13
Man, I thought you were joking! :.-D
Really cool Danny, really cool!
08/11/2014 (6:10 am)
Quote:EDIT: whoah, that looks nice too Nils
Man, I thought you were joking! :.-D
Really cool Danny, really cool!
#14
08/11/2014 (5:24 pm)
Updated with code colours :).
#15
C:\Users\Username\AppData\Local\VirtualStore\Program Files (x86)\Torsion
could be a path where the preference file is stored.
04/29/2015 (10:12 pm)
Noticed that the path to the xml file might be different at some systems:C:\Users\Username\AppData\Local\VirtualStore\Program Files (x86)\Torsion
could be a path where the preference file is stored.
#16
Really weird stuff going on here :O)
07/21/2015 (7:08 pm)
Seems to me no matter where I put this xml file I have to do this manually. It will not update the the new look. Really weird stuff going on here :O)
#17
07/21/2015 (8:16 pm)
@Dwarf King, Did you reinstall Torsion lately? Perhaps the installation path has changed and the old files weren't removed. Try to do a search on your drive with "Torsion" and see if there's more then one... 
Associate Steve Acaster
[YorkshireRifles.com]