On Tue, 28 Oct 2014 12:17:07 -0700 (PDT) [email protected] wrote: > On Tuesday, October 28, 2014 6:38:03 PM UTC, Terry Brown wrote: > > > > Everyone seems to have different views of where the challenge is > > here, but to me it's how, in a Qt QTextEdit widget, do you make > > some text sometimes invisible, *without* a new layer of text > > loading / unloading code that would be a huge pain to get right. > > > Just wondering, how do wiki engines generally manage to make some > text invisible? If this issue indeed is the major stumbling block > towards implementing wiki-like links, it's worth looking around and > find out how the others solved it, rather than just trying to > re-invent the wheel.
Good question. Most wikis / wiki editors are HTML editors, where there is what you see and the entirely different underlying HTML markup, where any amount of auxiliary information like URLs can be safely stored. Leo is a *text* editor, the body editor content needs to behave like plain text for most of what Leo does. So the question would be how have *text* editors solved this in the past. Things like Tomboy notes, but that's really a custom widget specifically for this use case. Do vim or Emacs do this kind of thing? And even if they did have solutions (I don't know), we need a Qt solution. So I can't think of any cases where this has been handled before. Come to think of it, it's not just making `Character formatting <http://qt-.org/.../qtextcursor.html#setChar>`_ appear as 'Character formatting' that would be cool, but \subsubsection{Other steps} (from LaTeX) could be presented as just 'Other steps', etc. - I'm sure there are applications we haven't thought of. Cheers -Terry -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
