Edit - History - Recent changes

Projects to reuse for txt2tags (Edit)

We can get inspiration / ideas from those projects. We can also implement txt2tags to them when it's possible.

Other lightweight markup (Edit)

Others (Edit)

(from calepin.co) Because You’re Not Locked In

Find something that works better for you? No problem. Your .md files are small and portable, and aren’t locked away inside a proprietary format or hidden away inside an arcane XML file. They’re right there in a folder you own and control, ready to be used somewhere else if you need them.

Tools / Software(Edit)

What to use txt2tags for? (Edit)

There are several tools in addition to txt2tags. On HowToTxt2tags index.php?page=this we list the tools according to their usage.

etherpad-lite (Edit)


Etherpad-lite is almost txt2tags ready, there is a dokuwiki export which is close to txt2tags syntax. If you intend to export to txt2tags, just use those modifications on etherpad-lite/node_modules/ep_etherpad-lite/node/utils/ExportDokuWiki.js :

< var tags = '!!!=', '', '**', '//', '__', 'del>';
> var tags = '=', '==', '**', '//', '__', '--';
< pieces.push(new Array(line.listLevel + 1).join(' ') + '* ');
> pieces.push(new Array(line.listLevel + 1).join(' ') + '- ');

You can also change etherpad-lite/node_modules/ep_etherpad-lite/templates/pad.html and call to <a id="exportdokuwikia" target="_blank" class="exportlink"><div class="exporttype" id="exportdokuwiki">Txt2tags text</div></a>

Geany (Edit)

  • http://geany.org/

    • On windows, in "tools", choose "edit configuration files" > "filetype_extensions.conf".
    • On unix / linux edit /usr/share/geany/filetype_extensions.conf

      Replace txt2tags=*.t2t; by Txt2tags=*.t2t;

Kate (Edit)

  • Get this file, and rename it to txt2tags.xml
    • On Windows, put it into C:\Program Files\KDE\share\apps\katepart\syntax
    • On Linux and unix-like OS, put it into /usr/share/apps/katepart/syntax/ or replace /usr/share/kde4/apps/katepart/syntax/txt2tags.xml or /opt/kde/share/apps/katepart/syntax/txt2tags.xml

Scite (Edit)

  • Get Scite from http://www.scintilla.org/SciTEDownload.html
  • To enable the txt2tags syntax hightlight (which is not enabled by default), open scrite as root, select "options" > open SciTEGlobal.properties ("open global options file"), then uncomment the lines starting with #&txt2tags|t2t||\ and the other one starting with #import txt2tags by removing the leading #. Txt2tags files will be recognised now.
    • from scrite 3.2.0 "SciTEGlobal.properties" will be called ("open global options file") and the txt2tags import is prevented with the "imports.exclude" option. Remove txt2tags from it.
  • Sample SciTEUserProperties

Vim (Edit)

Vim is already supporting txt2tags syntax.

In addition you can use VOoM which is a plugin for Vim that emulates a two-pane outliner:

  • http://www.vim.org/scripts/script.php?script_id=2657
  • http://vim-voom.github.com/

    The most recent version has support for txt2tags. Download Voom and save it within your ~/.vim folder. Then load it with
       :so ~/.vim/voom.vim
    (for example). Then command
       :Voom txt2tags
    creates outline from txt2tags section titles. Both numbered and non-numbered titles are recognized. Verbatim, Raw, and Tagged areas are ignored.

    Screenshot (outline of the user guide)

    Tip: to resize the voom panel to 30, type:
    :vertical resize 30

    Tip2: to load both the txt2tags plugin and the voom panel, add this to you ~/.vimrc:

    au BufNewFile,BufRead *.t2t set syntax=txt2tags
    au BufNewFile,BufRead *.t2t set nolist
    au BufNewFile,BufRead *.t2t Voom txt2tags

    (nolist is for preventing to cut words when using wrap)

Emacs (Edit)

An emacs mode can be found in the "extra" tools folder of txt2tags. You can get it there as well.

Then save it for example to ~/.emacs.d/txt2tags/ and add to your ~/.emacs

;; txt2tags

 (add-to-list 'load-path "~/.emacs.d/txt2tags/")
 (setq auto-mode-alist (append (list
 	'("\.t2t$" . t2t-mode)
 	(if (boundp 'auto-mode-alist) auto-mode-alist)
 (autoload  't2t-mode "txt2tags-mode" "Txt2tags Mode" t)

Direct export to PDF (without LaTeX) (Edit)

wkhtmltopdf can convert html to pdf, with the use of webkit: https://code.google.com/p/wkhtmltopdf/

You can get your pdf this way:

txt2tags -t html file.t2t && wkhtmltopdf file.html file.pdf


springseed (Edit)

Springseed is a markdown editor using marked.js for rendering.

Install it from the official page. Then:

cd /opt/springseed
unzip springseed.nw -d sp
cp marked.js spr/node_modules/marked/lib/marked.js 
cd spr
 cake -w server
(ctrl + c to break it)
 zip -r ../springseed.nw ./*


Other tools (Edit)