Q: Some of this (and the following) probably doesn't belong on an FAQ page--feel free to move it to another page--I don't immediately see how to do that (i.e., start a new page on this wiki).
Background: I won't call myself any of a C, C++, or a Lua programmer, still I'd like to have a lexer for "my" markup language, which is basically TWiki markup with a few customizations. My questions are aimed at that.
Q1: From what I can tell, the Lua lexers should be able to also include folding, correct? (Folding is the most important thing for my application.)
Q2: I haven't looked at all 70+ lexers, but I haven't seen one so far that includes folding. Is there an example of one?
Q3: One of the customizations to the TWiki markup is using the mbox From header (and file format) to store multiple records in a single file. And, I will often want to fold on that From header. Let me find the syntax of the header (as I use it)--ok, here's an example, and then a generic representation:
From "A Sample Record" Mon May 28 06:41:39 2007 Date: 05/28/07 06:41 pm Subject: A Sample Record
<content of the record>
morF
From "<record title>" <record date in mbox "format"> Date: <in my preferred format> Subject: <record title>
<content of the record>
morF
Some notes:
re: record title: It can be one word, in which case quotes are optional. Embedded quotes are allowed.
morF is an optional markup to show the end of a record--I needed this in kate, but intend to keep it as optional markup for notes or similar that I may keep "outside" of records
I do want to syntax highlight the headers
for purposes of this discussion, I'll call the lines starting with Date:, Subject:, etc. "auxillary header lines". There may be a lot of auxillary header lines (besides Date: and Subject:)--those lines (the header) will end with a blank line.
I will do a lot of folding--I may describe more to you in the future (just as an example, headers at levels 1 thru 6 are allowed within a record and I will want to fold on those), but, in general, I will want to fold what you see above in two ways:
fold it so the the only thing that is visible for each record is the From line
fold it so the <content of the record> is visible (and possibly folded at headers and such), but the "auxillary header lines" (i.e., Date:, Subject:, etc.) are not visible
So, the question here is, does any of this look like a bad fit for Scintillua--or, phrased another way, does it look like a better fit for a "standard" Scintilla C++ lexer / folder?
Q: Some of this (and the following) probably doesn't belong on an FAQ page--feel free to move it to another page--I don't immediately see how to do that (i.e., start a new page on this wiki).
Background: I won't call myself any of a C, C++, or a Lua programmer, still I'd like to have a lexer for "my" markup language, which is basically TWiki markup with a few customizations. My questions are aimed at that.
Q1: From what I can tell, the Lua lexers should be able to also include folding, correct? (Folding is the most important thing for my application.)
Q2: I haven't looked at all 70+ lexers, but I haven't seen one so far that includes folding. Is there an example of one?
Q3: One of the customizations to the TWiki markup is using the mbox From header (and file format) to store multiple records in a single file. And, I will often want to fold on that From header. Let me find the syntax of the header (as I use it)--ok, here's an example, and then a generic representation:
From "A Sample Record" Mon May 28 06:41:39 2007 Date: 05/28/07 06:41 pm Subject: A Sample Record
<content of the record>
morF
From "<record title>" <record date in mbox "format"> Date: <in my preferred format> Subject: <record title>
<content of the record>
morF
Some notes:
So, the question here is, does any of this look like a bad fit for Scintillua--or, phrased another way, does it look like a better fit for a "standard" Scintilla C++ lexer / folder?
Oops, I didn't notice until now, but some of the lines got contatenated--let me see if I can fix that:
concatenated ;-)