View Single Post
Unread 07-04-12, 05:46 AM   #58
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,376
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.]=======]
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline