What subset of txt2tags does RedNotebook support?

Asked by Jendrik Seipp on 2011-11-20

Is there any documentation on what subset of txt2tags RedNotebook supports, for example a list of those features it *doesn't*?

Question information

Language:
English Edit question
Status:
Solved
For:
RedNotebook Edit question
Assignee:
No assignee Edit question
Solved by:
Jendrik Seipp
Solved:
2011-11-20
Last query:
2011-11-20
Last reply:
Jendrik Seipp (jendrikseipp) said : #1

RedNotebook supports all of txt2tags's markup. Some of it may just not be highlighted correctly in the edit mode or there may be missing styling in the html preview.

All %include, %preprocess, %postprocess etc. macros are *not* supported.

HansBKK (hansbkk) said : #2

Excellent!

May I request an enhancement to the preview to distinguish between

-------------------------------------
and
========================

and possibly include the former in the menu?

And may I ask why %include isn't supported? (if it's not a technical reason, consider this an enhancement request)

Actually, bigger questions, since the reason I want these is I've started using Rednotebook as my txt2tags "general editor" for smaller texts, just use an empty date and then copy and paste back to the main IDE.

Is there **ANY** other editor out there that does as sweet and easy a preview of txt2tags?

Jendrik Seipp (jendrikseipp) said : #3

I think having two different horizontal lines in the menu is overkill
for most users.

%include is not supported because currently only the body of a txt2tags
document is editable by the user. I will think about lifting this
restriction (if it's possible and not too difficult).

I don't know any other editor that supports txt2tags markup in the same
way as RedNotebook, but would also be very much interested in finding
one. Some people have tried, but it's not easy I think:
http://txt2tags.wordpress.com/2009/09/17/txt2tags-in-geany-editor/

HansBKK (hansbkk) said : #4

Yes, it's the semi-wysiwyg of Rednotebook that I find so convenient, but the ability to browse a "folded hierarchy" in long/complex documents is also a great idea - I currently. This may also be of interest if you haven't seen it yet:

http://www.vim.org/scripts/script.php?script_id=2657

Back to my %include question, I don't understand what you mean about the body-only restriction.

My understanding is that an %include statement works anywhere you want to use it?

As I said I recognize your use case (journaling application) doesn't actually have a need for this - I'm struggling to think of an example - "things I want to remember on workdays" to include in the M-F templates?

> I don't know any other editor that supports txt2tags markup in the same way as RedNotebook

If that's the case I'd suggest it would be of great service to the txt2tags community for someone to fork your code into a standalone simple editor - take out the calendar-related stuff and put in a file browser instead, defaults to View mode as you arrow up-down a folder, hit enter to open in Edit mode.

Of course then people would want full editor-IDE feature bloat, so I understand why you wouldn't want to do that yourself, but it would be cool. . .

Or what about making the View-mode rendering code a separate "module" that someone could take and turn into an add-on for other editor/IDE environments - that way it wouldn't require any extra dev time on your part once you'd done the initial refactoring?

Sorry, just thinking out loud here, you can tell I'm a fan. I assume RN's written in Python?

Jendrik Seipp (jendrikseipp) said : #5

Am 22.11.2011 11:20, schrieb HansBKK:
> Back to my %include question, I don't understand what you mean about the
> body-only restriction.
>
> My understanding is that an %include statement works anywhere you want
> to use it?
You're right, I was wrong. The include statement as mentioned at
http://txt2tags.org/userguide/includecommand.html works in RedNotebook,
but even I found about this only minutes ago. If the included file
doesn't exist, no preview is shown at all... Hmm, I fixed this and now a
warning is shown.
<http://txt2tags.org/userguide/includecommand.html>
> If that's the case I'd suggest it would be of great service to the
> txt2tags community for someone to fork your code into a standalone
> simple editor - take out the calendar-related stuff and put in a file
> browser instead, defaults to View mode as you arrow up-down a folder,
> hit enter to open in Edit mode.
>
> Of course then people would want full editor-IDE feature bloat, so I
> understand why you wouldn't want to do that yourself, but it would be
> cool. . .
>
> Or what about making the View-mode rendering code a separate "module"
> that someone could take and turn into an add-on for other editor/IDE
> environments - that way it wouldn't require any extra dev time on your
> part once you'd done the initial refactoring?
I have thought about this myself already, but I think RedNotebook lacks
many features a good editor has. In my opinion the better way is to
change an existing editor.
>
> Sorry, just thinking out loud here, you can tell I'm a fan. I assume
> RN's written in Python?
Yes it is.