Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Textile in TextEdit
Where to start looking to build a plugin that would allow you to run a neighboring window in TextEdit (mac .txt editor also with .rtf) that show the HTML conversion upon button click, holler, or zap?
Anyone heard of such a thing?
For those of you who word process (computationally) in Textile, this might appeal to you.
Last edited by whaleen (2010-03-24 07:37:32)
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
Re: Textile in TextEdit
You’ll want to look into using redcloth
from the command line (e.g., redcloth my-file.textile > my-file.html
). Make sure you have a 4.x.x version of redcloth, unless you want broken bc
blocks. Not sure if TextEdit has any hooks, but you could probably write an AppleScript to take the current file and feed it to redcloth.
I really wouldn’t bother with TextEdit though (it’s mainly an RTF editor like WordPad) — check out MacVim (or Vim with +ruby) with Textile.vim or TextMate. With Textile.vim, you just do :TextilePreview
and it’ll open Safari with the rendered page. Of course, with either editor you can just create a mapping to redcloth too.
Offline
Pages: 1