private string GetAttributeValueFromPosition(string attributeValue)
{
int pos = CurrentPos;
int startPos = -1;
int endPos = -1;
if (CharAt(pos) == '"' || CharAt(pos - 1) == '"')
return attributeValue;
for (int i = pos; i > pos - 36; i--)
{
char c = CharAt(i);
if (c == '"')
{
if (CharAt(i - 1) == '=')
startPos = i + 1;
break;
}
}
if (startPos != -1)
{
for (int i = pos; i < pos + 36; i++)
{
char c = CharAt(i);
if (c == '"')
{
endPos = i;
break;
}
}
if (endPos != -1)
{
Selection.Range = GetRange(startPos, endPos);
attributeValue = Selection.Range.Text;
}
}
return attributeValue;
}