Hey,
Yes, in the current build on the asset store, </v> causes an error, but I'm currently waiting on the asset store to upload my fix to that. The change I made was that I changed line 1884 in SuperTextMesh.cs to "myInfo = new STMTextInfo(this);"
Here's a modified Replace() function for the above code that will work together with other tags:
void Replace(STMTextContainer x, int startingPoint, int endingPoint)
{
//int originalLength = x.text.Length;
int skippedChars = startingPoint;
bool parsingOn = true;
//go thru string
for(int i=startingPoint; i<endingPoint; i++) //for each letter in the original string...
{
string replaceValue = x.text[skippedChars].ToString(); //default value if(replaceValue == "<")
{
//turn off parsing
parsingOn = false;
}
else if(replaceValue == ">")
{
//turn back on
parsingOn = true;
}
//is this a letter that should be replaced?
if(parsingOn)
{
//replace specific characters with sequences
//for this example, compare all letters as uppercase letters
switch(x.text[skippedChars].ToString().ToUpper())
{
case "A": replaceValue = "aaa"; break;
case "B": replaceValue = "bbb"; break;
//etc etc...
}
//remove original character
x.text = x.text.Remove(skippedChars, 1);
//replace with sequence
x.text = x.text.Insert(skippedChars, replaceValue);
} //1 by default, but adds up if more characters are inserted
skippedChars += replaceValue.Length;
}
}