#43089 - Syntax highlighting for Math
erack at redhat.com
Mon Nov 11 12:52:30 PST 2013
On Monday, 2013-11-11 13:22:03 +0000, Jose Guilherme Vanz wrote:
> I'll start to work in this bug
> <https://bugs.freedesktop.org/show_bug.cgi?id=43089#add_comment>. Do you
> have some code pointers? I was taking a look on EditEngine and EditView
> sources. I think we have to implement this on these classes, right?
While it's true that Math uses EditEngine and EditView I'm not convinced
the actual change should be _inside_ those, EditEngine is already a hard
to handle beast and you'd have to add yet another mode to travel along
lines and paragraphs to highlight matching parentheses. Maybe the
ScInputHandler::UpdateParenthesis() code in
sc/source/ui/app/inputhdl.cxx might help as an inspiration how it could
be done from outside; if you could implement that inside EditEngine
without too much trouble that would be the best, otherwise I'd go for
a similar external solution. Fortunately a single Math edit usually
isn't overly long, otherwise obtaining and travelling the text whenever
the cursor stops moving would be too much overhead.
Or maybe someone has a good idea how to implement that in EditEngine? :-)
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key ID: 0x65632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
Support the FSFE, care about Free Software! https://fsfe.org/support/?erack
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: not available
More information about the LibreOffice