Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-26 18:04:34

sb56637
New Member
Registered: 2007-03-26
Posts: 5

[textile] Available Textile Editors for the Desktop?

Hi there,

I am really impressed by the concept of lightweight markup languages like Textile. I actually find composing regular multipurpose documents to be easier to create using Textile than using a word processor like OpenOffice writer or MS Word. I was wondering if there are any desktop editors out there that support Textile, so I can type a document in Textile format, do a quick preview, and then print the document. I would like something that is free open source, and available on Win32. I realize I could just run a local webserver with TextPattern, but I’d prefer not to.

Thanks for your help!

Offline

#2 2007-04-09 14:25:25

wystan
New Member
Registered: 2007-03-31
Posts: 4

Re: [textile] Available Textile Editors for the Desktop?

I have found a solution. It uses a php binary file and common text editors that support external command with output capture.

I tested Editplus and Syn Editor. Both editors are work fine.

First, download and install a windows version of php binary. It’s available at http://www.php.net/downloads.php.

Then create a php script file with below code and name it with ‘textile_this.php’.

<?php
include('d:\classTextile.php');
$content = file_get_contents($argv[1]);
$textile = new Textile;
echo $textile->TextileThis($content);
?>

Note that you should modify second line according to your ‘classTextile.php’ file path.

And set a editor’s external command options. You would refer to my sample setting. Another example that uses Syn Editor is here.

The process is simple. If the command is executed, your working document is sent to textile_this.php and converted by classTextile.php. Then converted html code is captured by text editor.

It’s my sample screenshot. Another one is here.

Sorry for my poor english, but I wish you to understand it.

Last edited by wystan (2007-04-09 16:06:58)

Offline

#3 2007-04-09 16:13:39

sb56637
New Member
Registered: 2007-03-26
Posts: 5

Re: [textile] Available Textile Editors for the Desktop?

Nice solution! Thanks, I understand your english just fine! :-) So to view the formatted version, I would just copy the html formatted text to a file?

Offline

#4 2007-04-09 16:18:12

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [textile] Available Textile Editors for the Desktop?

Textmate or Textwrangler with Textile? Anyone done that?

[edit] estupido… Textile is super easy in Textmate (ctrl-shift-H), still haven’t found anything on textwrangler…

Last edited by mrdale (2007-04-09 16:50:04)

Offline

#5 2007-04-09 17:15:51

wystan
New Member
Registered: 2007-03-31
Posts: 4

Re: [textile] Available Textile Editors for the Desktop?

If you would like to view a formatted html document immediately, just modify ‘textile_this.php’ file like this…

<?php
include('d:\classTextile.php');
$content = file_get_contents($argv[1]);
$textile = new Textile;
echo $textile->TextileThis($content);
$fp = fopen('d:\result.html', 'w+');
fwrite($fp, $textile->TextileThis($content));
fclose($fp);
exec('d:\result.html');
?>

If you have associated .html extension with a browser, the ‘result.html’ will be open.

You may change a output file name by using the reqular expression, but my php skill is not good enough to do that.

And I have no idea about mac-based program. I haven’t use it.

Again, I wish you to understand it. :-)

Last edited by wystan (2007-04-10 02:30:59)

Offline

#6 2007-04-09 17:57:25

voiceofra
Member
From: Scappoose, OR, USA
Registered: 2007-04-07
Posts: 11
Website

Re: [textile] Available Textile Editors for the Desktop?

mrdale wrote:

Textmate or Textwrangler with Textile? Anyone done that?

[edit] estupido… Textile is super easy in Textmate (ctrl-shift-H), still haven’t found anything on textwrangler…

But those are Mac apps, OP is looking for a Windows solution.
Though the best solution for any Windows issue is to get a Mac :p

Offline

#7 2007-04-09 23:12:11

sb56637
New Member
Registered: 2007-03-26
Posts: 5

Re: [textile] Available Textile Editors for the Desktop?

Cool, thanks!

Offline

#8 2007-04-11 08:34:54

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: [textile] Available Textile Editors for the Desktop?

I use e-texteditor.com which is basically TextMate for windows. Great editor that supports Textile. To do live previews just hit “Ctrl Alt P”, tick show options and type “textile.rb” in the pipe though box.

Offline

#9 2007-06-30 15:21:54

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

Re: [textile] Available Textile Editors for the Desktop?

Might Live Textile JS Preview be of any help? Let’s link to blog post about live comment previewing too.

It does only the basics and doesn’t escape html. I saved the page locally so it’s always available. To save stuff one have to copy&paste it elsewhere. (notepad is quite fast to open with win-r) One have to allow scripts locally or change file extension for IE probably.

Last edited by anoke (2007-06-30 15:25:37)


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

Board footer

Powered by FluxBB