MathGroup Archive 2010

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

Search the Archive

Code highlighting

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111151] Code highlighting
  • From: Mihail <macherkasskiy at gmail.com>
  • Date: Thu, 22 Jul 2010 05:41:34 -0400 (EDT)

I write Mathematica programs. Reading of a code with many nests or a
deep code is a difficult problem. I want to suggest a feasible
solution. When I move the cursor through the code then the nearest
part of the code will be highlighted. There is the nearest part of the
code in the nearest level.

Something like this:

 Cell[BoxData[
 RowBox[{
  RowBox[{
   RowBox[{"Sin", "[",
    RowBox[{
     StyleBox["Cos",
      Background->RGBColor[0.866667, 0.937255, 1]],
     StyleBox["[",
      Background->RGBColor[0.866667, 0.937255, 1]],
     RowBox[{"2", " ",
      RowBox[{"ArcCsc", "[",
       RowBox[{"#", "+", "1"}], "]"}],
      StyleBox[
       RowBox[{
        RowBox[{"-", "Pi"}], "/", "2"}],
       Background->RGBColor[0.866667, 0.937255, 1]]}],
     StyleBox["]",
      Background->RGBColor[0.866667, 0.937255, 1]]}], "]"}], "&"}], "/
@",
  RowBox[{"{",
   RowBox[{"x", ",",
    RowBox[{"x", "^", "2"}], ",",
    RowBox[{"x", "^", "3"}]}], "}"}]}]], "Input",
 CellChangeTimes->{{3.4887160374923267`*^9, 3.4887160772304373`*^9}}]

Sorry, my English isn't good.


  • Prev by Date: Need to align data from sublists to Union of dates from all sublists
  • Next by Date: surprising comparison of Mathematica 5.2 and 7.0
  • Previous by thread: Need to align data from sublists to Union of dates from all sublists
  • Next by thread: surprising comparison of Mathematica 5.2 and 7.0