View Single Post
07-04-12, 05:46 AM   #58
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by zork View Post
Afaik double backslashes are needed if the texture name is used directly. There is an alternative way to write it without the leading backslash. Phanx or p3lim should know it. Sth like [[TEXTUREPATH]] or [=[TEXTUREPATH]=]
Code:
"All \"special\" characters like \\ must be escaped."
Code:
[[All "special" characters like \ are fine as-is.
Also, line breaks work.

Even double line breaks!]]
Code:
[=[For when you want literal [[double brackets]] in your
"double bracketed string" with \backslashes and line breaks.]=]
Code:
[=======[For when you really like lots of equals signs,
or for some reason want a literal [=[ or [====[ in your string.
As long as there are the same number on both sides,
it doesn't matter how many there are.]=======]
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.