Issue 38992 - color in levels of () [] & {}
Summary: color in levels of () [] & {}
Alias: None
Product: Math
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1.3
Hardware: All All
: P2 Trivial with 34 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
: 51753 93024 (view as issue list)
Depends on:
Reported: 2004-12-14 18:55 UTC by djago
Modified: 2013-02-07 22:37 UTC (History)
6 users (show)

See Also:
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description djago 2004-12-14 18:55:08 UTC
It would be nice if the math editor can show (in the editor, not in the real
object, or maybe like an option, in the real object too) the level of the ( [ {
displaying it in color.
Also (optionally) the content on that level could be in the same color. This way
you can quickly see if two distinct and separated parts of an equation are in
the same level (for example if they are products).

For example

first ( show in red together with the d and the last )
second ( show in green together with the c) and the (e+f)
third ( show in blue together with a+b)

Another scheme of colors could be from darker to lighter, or via a hue rotation...

This way you could easily understand when the () starts and ends. Also could
help you to track problems in long nested formulae like 
int{{d^3k}over{2E(2%pi)^3}}left[%theta(%tau_2-%tau_1)(overstrike k+m) e^-{i vec
k cdot (vec x_2-x_1)}-%theta(%tau_1-%tau_2)(overstrike k-m)e^{i vec k cdot(vec
Comment 1 eric.savary 2004-12-15 03:13:21 UTC
This proposal makes a lot of sense!
Better than color highliting (risky from an Accessibility point of view) I'd
advocate for a bold markeup of the breaks when the cursor is on them.
Comment 2 lohmaier 2005-07-10 23:11:07 UTC
*** Issue 51753 has been marked as a duplicate of this issue. ***
Comment 3 open_me 2006-08-22 10:13:20 UTC
Other editors simply highlight the corresponding bracket when one clicks on a

So, taking the example of (((a+b)c)d(e+f)); if I click on the second bracket,
the bracket after the c is highlighted. I like this, and it doesn't make editing
formulae look like a rainbow or something.
Comment 4 troodon 2007-11-11 12:04:27 UTC
Could the summary be changed to include the words "syntax highlighting"? Thank you!

I think the best way would be to implement both types of highlighting and make
it user configurable: the "permanent" one and the one that highlights something
only one the cursor is at the right place (ie. brackets when it's between them).

Also, highlighting of commands (matrix, over, size...), operators (+, -, =) and
special charaters (%omega, %beta...) would be very useful when dealing with
large formulas.

Please vote for this issue if you like this enhancement :-)
Comment 5 dma2002 2007-12-24 12:50:57 UTC
One more issue, which exists for a long time and still without a target. Target
is needed. And much better not OOoLater. :-)
Comment 6 dmitry_black 2008-07-04 17:16:42 UTC
In editors with command line input syntax highlighting is a very important for
ease, especially then you write big formulas. And i agree this dma2002 that target
is needed.
Comment 7 lohmaier 2008-08-23 18:34:05 UTC
*** Issue 93024 has been marked as a duplicate of this issue. ***