Writing #microblogpub articles using ReText
This I wrote in ReText - "a simple but powerful editor for Markdown and reStructuredText markup languages."
For an article I usually do not find the time to write it in one session and I prefer to have an option to save my text and restart later.
Furthermore I'm not a #Markdown hero and often produce syntax errors leading to unreadable documents. I love to have a preview.
Since microblog.pub does not support saving drafts, editing existing posts or previewing posts, yet, I looked for an editor for Markdown and found #ReText.
Typing this I have a preview in the right part of the window showing my text formatted using the css of microblog.pub.
Want to try it? Here's a quick start:
- Install ReText however you'll do that on your computer (for Debian there's a package offered:
sudo apt-get install retext
). - Copy the file main.css from the
static
folder of your microblogpub installation (in #yunohost mine is located at/opt/yunohost/microblogpub/microblogpub/app/static/css/main.css
) to~/.config/ReText\ project/
. I renamed mine tomicroblogpub.css
. - Start ReText once to let it fill the configuration file with its default settings.
- End ReText
vi ~/.config/ReText\ project/ReText.conf
to change the configuration. Here's mine as an example:
[General]
defaultPreviewState=live-preview
editorFont=Monospace
editorFontSize=14
saveWindowGeometry=true
styleSheet=/home/YOUR_USERNAME/.config/ReText project/microblogpub.css
tabInsertsSpaces=false
useWebKit=true
You need to replace YOUR_USERNAME in the above example to point styleSheet
to the file in your home-directory.