• Anonymous
  • Login
  • Register
DominoWiki - Feature Request: Add Indenting Markup


I like the simple markup mediawiki uses to control indenting paragraphs. I added a function to the WikiPage.class to convert ':' to div tags. Multiple :'s result in larger div margins.

' Indent 2em spaces for each colon found at the beginning of a line
' param txt - the whole wiki page text
' param amount - the number of :'s to search for
Private Function doIndent (txt As String, amount As Integer) As String
doIndent = ReplaceRangeEnds(txt, Chr(10) & Ustring(amount, ":"), Chr(10), _
"<div style='margin-left: " & (2 * amount) & "em'>" , " </div>" , "*" , True)
End Function

doIndent is called from parseIndent which just calls doIndent in a loop, processing most colons first.

I can't say I totally understand the ReplaceRangeEnds function. As written, this only properly indents adjacent paragraphs (with the same indent level) if there is an intervening blank line. i.e.
: Level 1
: Level A
Fails to indent level A. Ah well.



Taken Actions by Owners

No actions have been taken yet.


Documents
In this field you can enter the actual request.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.