Local layout syntax highlight foundation
Pavel Sanda
sanda at lyx.org
Tue Oct 25 11:47:59 UTC 2022
On Thu, Oct 20, 2022 at 10:17:02AM +0200, Lorenzo Bertini wrote:
> >>3. Generic regex based on position or keyword recognition. Which one?
> >
> >What are the implications?
>
> | regex | keywords |
> |-----------------------------------|----------------------------------|
> | *X* harder to maintain | *V* easier to maintain |
> |-----------------------------------|----------------------------------|
> | *V* fewer lines, no database | *X* needs extensive keyword db |
> |-----------------------------------|----------------------------------|
> | *X* relies on position only | *V* only highlights |
> | highlights wrong keywords | working keywords |
>
> But then again this was more of a proof of concept. Thanks for the insights.
After reading your table the keywords approach seems better to me (esp.
"easier to maintain" part - we don't want complicated code for such tiny
niche).
Pavel
More information about the lyx-devel
mailing list