Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Coloured strings

  • To: mathgroup at
  • Subject: [mg126203] Coloured strings
  • From: David Bailey <dave at>
  • Date: Wed, 25 Apr 2012 00:32:26 -0400 (EDT)
  • Delivered-to:

If you take an expression such as:

and colour some portions of the string, you obtain:

StyleBox["\"\<\\!\\(\\*\\nStyleBox[\\(ABC\\*\\n StyleBox[\\\"DEF\\\",\
\\nFontColor->RGBColor[1, 0, 0]]GHIJKLMN\\*\\n \
StyleBox[\\\"OPQRSTUV\\\",\\nFontColor->RGBColor[0, 0, 1]]WXYZ\\)]\\)\

I am wondering if anyone knows an easy way to remove the colouring from 
such a string - other than creating a fairly complicated string pattern 
(bearing in mind that the original string might contain unpaired quotes, 

David Bailey

  • Prev by Date: Re: Question about DayOfWeek
  • Next by Date: Print out an Expression Letter by Letter on the same line
  • Previous by thread: overlay and show commands
  • Next by thread: Re: Coloured strings