Local layout syntax highlight foundation
Pavel Sanda
sanda at lyx.org
Wed Oct 19 16:58:24 UTC 2022
On Fri, Oct 07, 2022 at 07:22:30PM +0200, Lorenzo Bertini wrote:
> 1. I can't find how to put files I've added to git inside a patch to send,
> so I have attached the two files, both go in src/frontend/qt. Sorry :)
No problem.
> 2. LyXHighlighter differs a lot from LaTeXHighlighter: doesn't rely on regex
> as much. I was wondering if a merge could be possible, considering local
> layout can include Latex bits.
If merging possible that's always good. If they differ too much one of them
is likely inferior in its design? :)
> 3. Generic regex based on position or keyword recognition. Which one?
What are the implications?
> 4. Syntax keywords are hardcoded right now (I only added a few properties
> because it's tedious work and there's probably a better way). Is there a
> place where I can find all keywords LyX uses in a layout?
Some things are hardcoded in src/Layout.cpp, but I don't think it covers
everything (without digging deeper I do not see e.g. "TocDepth" in this file).
Pavel
More information about the lyx-devel
mailing list