Starmath hightlight syntax (need help)

Miklos Vajna vmiklos at collabora.com
Wed Jan 27 07:40:14 UTC 2021


Hi Dante,

On Tue, Jan 26, 2021 at 08:35:07PM +0100, Dante Doménech <dante19031999 at gmail.com> wrote:
> I'm working on a simple starmath syntax highlighter over here:
> https://gerrit.libreoffice.org/c/core/+/109639
> There's a little bit more work to do finding the node on which the cursor
> is placed, so don't get alarmed with SmNode* brace1 = nullptr; if(brace1 !=
> nullptr).
> 
> The point: with the syntax highlight the cursor feels wrong. Also it won't
> update after moving the cursor. So my guess is I made a wrong choice for
> putting LaunchHightlightSyntax(); I need help in order to find the right
> position for it.
> It does build, so can be downloaded and tested because "cursor feels wrong"
> means something is wrong but can't tell what.

Did you try to compare your code with the basic IDE syntax highlight
code? Perhaps that would give you a tip how to use the API correctly.

Regards,

Miklos


More information about the LibreOffice mailing list