Quantcast WoWInterface - View Single Post - Beta API discussion
View Single Post
07-04-12, 05:46 AM   #58
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]=]
"All \"special\" characters like \\ must be escaped."
[[All "special" characters like \ are fine as-is.
Also, line breaks work.

Even double line breaks!]]
[=[For when you want literal [[double brackets]] in your
"double bracketed string" with \backslashes and line breaks.]=]
[=======[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, oUF_Phanx, 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!