AggrorJorn Posted February 12, 2016 Posted February 12, 2016 What is the workaround again to get the formatting for Lua scripts correct when editing a post? Posting the script inside a 'code' tag works at first. Bu when you edit your post, you lose all formatting. --testing function Script:Start() self.enabled = false end Quote
Brutile Posted February 12, 2016 Posted February 12, 2016 Are you talking about all those extra html tags? If so, you get those for colored text, bold text, etc.So if you post raw text, it should show up ok. Don't know about the workaround you're talking about though. Quote
Josh Posted February 12, 2016 Posted February 12, 2016 There's a little button in the edit window that turns off the auto formatting so you are working with old school bob code. Keep that turned off when you start editing and it will retain white soace Quote My job is to make tools you love, with the features you want, and performance you can't live without.
AggrorJorn Posted February 12, 2016 Author Posted February 12, 2016 Ah that's the one. Only downside to it is when you toggle a second time between editing mode, you lose the indenting. Quote
gamecreator Posted December 4, 2016 Posted December 4, 2016 What do you put in the code tag to format as C/C++? I believe Lua was made the default a while back. Quote
Josh Posted December 5, 2016 Posted December 5, 2016 {cpp} 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
macklebee Posted December 5, 2016 Posted December 5, 2016 void semicolon semicolon void void ;;;;;;; [ cpp ]void semicolon semicolon void void ;;;;;;;[ / cpp ] ^remove the spaces in the brackets 1 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
gamecreator Posted December 5, 2016 Posted December 5, 2016 Was editing repeatedly as I was testing it. Took me a second to figure out the obvious. Thanks. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.