#43089 - Syntax highlighting for Math

Tomaž Vajngerl quikee at gmail.com
Mon Nov 11 14:17:10 PST 2013


On Mon, Nov 11, 2013 at 9:52 PM, Eike Rathke <erack at redhat.com> wrote:
> Hi Jose,
> 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? :-)

I don't know about EditEngine but the most similar thing to this is
the visual basic editor. I would look at it how the syntax
highlighting is done there.

>   Eike

Regards, Tomaž

More information about the LibreOffice mailing list