[RFC PATCH 0/1] Add new parser to symbol-view

loh.tar loh.tar at googlemail.com
Sun Jul 22 14:49:09 BST 2018

With this you have something like a table of contents when reading/edit a plain
text file like a README.

Recognized right now is only === as section and --- as header in any length, all
other text is treated as paragraph.

For my taste it works already pretty charming when you have a well formatted
file. But there could be things improved. As hint what I talk about I have
inserted here some example lines.

 - I have used these 'astyle' command on the batch parser and used this as
   starting point. Is the result as it should?
 - Is there any special use of the copyright/author block? Parsed by some script
   to include in some credit page? It looks a little strange to me but have keep
   it in the same way.

Thanks, Lothar

loh.tar (1):
  SymbolView: Add a plain-text-parser

 addons/symbolviewer/CMakeLists.txt            |  16 +-
 addons/symbolviewer/plaintext_parser.cpp      | 156 ++++++++++++++++++
 .../symbolviewer/plugin_katesymbolviewer.cpp  |   2 +
 addons/symbolviewer/plugin_katesymbolviewer.h |   2 +-
 4 files changed, 173 insertions(+), 3 deletions(-)
 create mode 100644 addons/symbolviewer/plaintext_parser.cpp


More information about the KWrite-Devel mailing list