MT-Textile does that???

Things you probably didn't realize you could do with MT-Textile 2:

  1. Hyperlinks for Amazon, IMDB and Google searches. For example (search term can be placed after the last ':', or will default to the hyperlinked text):
  2. Float images to the left and right; center stuff too:
    • !>/images/me.jpg! (floats image to right)
    • !</images/me.jpg! (floats image to left)
    • p=. !/images/me.jpg! (centers image in a paragraph)
  3. Use character macros for many international characters and symbols:
    • My 2{c|} becomes My 2¢
    • Resum{e'} becomes Resumé
    • {:)} becomes ☺
    • {umbrella} becomes ☂ (these are available if you have the 'charnames' Perl module as part of your Perl installation -- if so, all available unicode character names can be expressed like this to produce that character)
  4. Write sloppy HTML for an XHTML formatted web site:
    • <br> becomes <br />
    • <img ...> becomes <img .../>
    • <hr> becomes <hr />
  5. Make your text bigger and smaller using ++double plusses++ and --double minuses--
  6. Create definition lists using the "dl" block signature:
    • dl. term 1:This is the definition.
      term 2:another definition
  7. Combine HTML and Textile together. Textile tries to be pretty smart about HTML that's mixed in with Textile content. If you find some egregious mishandling, please report it to the bug tracker.
  8. Footnotes
    • Indicating a footnote-- add [number] to the end of a word (cannot be preceded by a space to be recognized).
    • Placing a footnote paragraph-- use the "fnN." block signature, where "N" is the number for the footnote you're creating.
  9. Create some pretty fancy tables, complete with style sheet rules, header cells, row and column spanning, alignment and so on.
  10. Write valid XHTML. I would say that 99% of your weblog posts can be done using pure Textile markup. That is, without the need to write any HTML at all.
  11. Give things class. CSS class names can be assigned to most anything (of course, it's up to you to write the CSS stylesheet):
    • p(first). Paragraph text will add a class="first" attribute to the paragraph tag.
    • %(logo)BigCorp% creates a "span" tag with the class "logo".
  12. You can assign CSS id attributes too:
    • p(#copyright). Copyright (c) 2004
  13. You can even write style rules in there (thank goodness XHTML 2 has decided to preserve this option)
    • p{color:red;font-weight:bold}. Stuff I want in red and boldface.
  14. Define your language. Most things accept a language modifier:
    • p[fr]. Je suis tres bien. (makes a paragraph of French text)
    • bq[fr]. Je suis tres bien. (makes a blockquote of French text)
    • %[fr]Je suis tres bien.% (makes a span with French text)
  15. Colorize Java, PHP and Perl code (if you also have MT-CodeBeautifier installed):
    • bc[java]. public static void main(String[] args) {
          System.out.println("Hello, world!");
      }
    • @[php]echo "Hello, world!\n";@
  16. Use the <$MTTextileOptions$> tag to control MT-Textile (this tag would be placed at the top of any MT templates that produce MT-Textile formatted data. You can combine multiple options within one tag):
    • <$MTTextileOptions head_offset="2"$> -- translates "h1." block signatures into <h3> tags instead (and so forth for h2, h3, etc.). This allows you to logically write "h1" as a top-level heading within your entry but have it render as an h3 tag upon publishing to your weblog.
    • <$MTTextileOptions preserve_spaces="1"$> -- causes double-spaces to be changed to the HTML entity for an em-space (&8195;).
    • <$MTTextileOptions trim_spaces="1"$> -- strips extra spaces from the end of each line.
    • <$MTTextileOptions smarty_mode="2"$> -- lets you customize the SmartyPants handling. See the documentation for the SmartyPants for more.
    • <$MTTextileOptions flavor="html/css"$> -- changes the output of Textile-created markup to be HTML 4.01 friendly.
  17. Write entire entries like this one without using angle brackets. (OK, I had to for the MT tag examples, but you know what I mean.)

TrackBack

TrackBack URL for this entry:
http://bradchoate.com/mt/feedback/tb/826

Listed below are links to weblogs that reference MT-Textile does that???:

» http://feralboy.com/log/links/archives/2004_02_05.html#000831 from FeralBlog Link Sideblog
Brad Choate: MT-Textile does that???... [Read More]

» MT Textile 2.0 is out from magpiebrain
Brad Choate has announced the latest version of MT Textile, which I use on this site for formatting my posts. The new version includes all kinds of new features, a couple of which really caught my eye:... [Read More]

» MT Textile 2.0 is out from magpiebrain
Brad Choate has announced the latest version of MT Textile, which I use on this site for formatting my posts. The new version includes all kinds of new features, a couple of which really caught my eye: I’ll be upgrading... [Read More]

» MT Textile 2.0 is out from magpiebrain
Brad Choate has announced the latest version of MT Textile, which I use on this site for formatting my posts. The new version includes all kinds of new features, the support for footnotes and creation of search strings for Amazon,... [Read More]

» MT-Textile 2.0 released from Brilliant Corners
Read about the release on Brad Choate's weblog or just go straight to the download and documentation page. If I had to choose only one Movable Type plugin to use, it would be this one. The text formatting rules are easy to learn, and have become almost... [Read More]

» Textile; Better, Faster, Stronger. from Verily
Everyone's favorite Perl MT plugin guru has come out with another stunning release of Textile. With a huge set of... [Read More]

» Textile; Better, Faster, Stronger. from Verily
Everyone's favorite Perl MT plugin guru has come out with another stunning release of Textile. With a huge set of... [Read More]

» Textile; Better, Faster, Stronger. from Verily
Everyone's favorite Perl MT plugin guru has come out with another stunning release of Textile. With a huge set of... [Read More]

» Dilemma 2 from Rodent Regatta
Yesterday we talked about the questions surrounding how to begin making this weblog validate. I pointed to tools. Perhaps lack... [Read More]

» MT-Textile2 from The Complex Now
Housekeeping note: we’ve upgraded to the production release of Brad Choate’s Textile2. This is of interest to readers of Complex Now because Textile2 formatting is enabled in comments. See: MT-Textile does that??? for some tips from Brad.... [Read More]

» MT-Textile Added from :: Stone Cottage ::
We've added MT-Textile to the server. Additional information is available on the creator's site, Brad Choate.... [Read More]

» Brad does it again from kirkconsulting.co.uk
Brad Choate does it again with his new feature packed release of the MT-Textile plug-in. [Read More]

» Brad does it again from kirkconsulting.co.uk
Brad Choate does it again with his new feature packed release of the MT-Textile plug-in. [Read More]

» Brad does it again from kirkconsulting.co.uk
Brad Choate does it again with his new feature packed release of the MT-Textile plug-in. [Read More]

» Brad does it again from kirkconsulting.co.uk
Brad Choate does it again with his new feature packed release of the MT-Textile plug-in. [Read More]

» Brad does it again from kirkconsulting.co.uk
Brad Choate does it again with his new feature packed release of the MT-Textile plug-in. [Read More]

» Textile Tips from Ian's Messy Desk
I’ve been using Brad Choate’s Textile plugin to format entries using MovableType. I under-utilize the pluging using it mainly to create hyperlinks and format ordered and unordered lists. I’ve upgraded to the recently-released Textile ... [Read More]

» Textile Tips from Ian's Messy Desk
I’ve been using Brad Choate’s Textile plugin to format entries using MovableType. I under-utilize the plugin using it mainly to create hyperlinks and format ordered and unordered lists. I’ve upgraded to the recently-released Textile 2... [Read More]

» Textile Tips from Ian's Messy Desk
I’ve been using Brad Choate’s Textile plugin to format entries using MovableType. I under-utilize the plugin using it mainly to create hyperlinks and format ordered and unordered lists. I’ve upgraded to the recently-released Textile 2... [Read More]

» Textile 2 Released from Discourse.net
Brad Choate has released Textile 2. The first edition of Textile was a super plug-in for MT, and this one looks even better. In fact it looks like substantially more than I need. Textile 2 does, however, fix the thing about the first edition that most ... [Read More]

» MT-Textile 2 from Vertical Hold
Never use HTML markup again. [Read More]

» Quick Links, February 08 from hebig.org/blog
Through the blogging-glass: The quest for metadata MT-Textile 2.0 is out - and powerful Hacking Friendster: This is the... [Read More]

» Sad excuse for a post from marginalia.org
This is really just an excuse to try out some funky stuff with textile 2 and some perl to generate amazon links, but hey: Futurama Volume 3 is coming out soon!... [Read More]

» Keine wunden Finger dank MT-Textile 2 from pixelgraphix
Brad Choate veröffentlichte vor Kurzem die aktuelle Version seines MT-Textile Plugins. Das Plugin macht die Verwendung von HTML-Tags in Beiträgen scheinbar komplett überflüssig indem es Text::Textile Modul in :MT: integriert. Nach e... [Read More]

» Keine wunden Finger dank MT-Textile 2 from pixelgraphix
Brad Choate veröffentlichte vor Kurzem die aktuelle Version seines MT-Textile Plugins. Das Plugin macht die Verwendung von HTML-Tags in Beiträgen scheinbar komplett überflüssig indem es Text::Textile Modul in :MT: integriert. Nach e... [Read More]

» Textile from W6 Daily
Spiffing Up The Joint: We'll see how it works, and whether or not I end up using it long-term. [Read More]

» Test from About This Boy
“Tangerine Dream”:amazon... [Read More]

» Test from About This Boy
“Tangerine Dream”:amazon.... [Read More]

» MovableType plugin manager, zeitgeist plugin from cloudy, chance of sun breaks
I installed the Plugin Manager last night while trying to make some more sense of the challenge that is generating... [Read More]

» Brad Choates version 2 of MT-Textile from A young Mennonite
What is so noteworthy about Brad Choate updating the powerful Moveable Type plugin he created MT-Textile based on the Textile tool from Dean Allen of Textism? Well, besides that it is fantastic. Brad, being the wonderful person that he is, updated ... [Read More]

» Showing off with textile 2 from dfc -- Douglas F. Calvert --
Brad Choate posted a entry recently showing off some of the things you can do in the new textile 2. I figured I would demonstrate some of the functionality for my fellow anizers. I will not cover many of... [Read More]

» Showing off with textile 2 from dfc -- Douglas F. Calvert --
Brad Choate posted a entry recently showing off some of the things you can do in the new textile 2. I figured I would demonstrate some of the functionality for my fellow anizers. I will not cover many of... [Read More]

» Links galore... from mak'in-trash`\.
collection of sites to help learn more about CSS plus other goodies [Read More]

» Links galore... from mak'in-trash`\.
collection of sites to help learn more about CSS plus other goodies [Read More]

» Textile 2.0 from Tong Family Blog
Brad Choate: MT-Textile does that???. Wow, Brad does it again with very cool with additional commands like automatic link creators to connect to amazon, imdb and google. Nice work!... [Read More]

» Cool MT-Textile tricks from Pale Blue Dot
Brad Choate takes it out for a spin.... [Read More]

» Cool MT-Textile tricks from Pale Blue Dot
Brad Choate takes it out for a spin.... [Read More]

» Cool MT-Textile tricks from Pale Blue Dot
Brad Choate takes it out for a spin.... [Read More]

» Day of the cool things from Surely you're joking, Mr. Larsen!
I discovered three truly cool things in a single day. Nice ☺ In no particular order: MT-Textile 2.0.2 (yes, I wasn't aware of it) Salling Clicker v.2.1 with Nokia 6600 support. Damian Conway's Exegesis 7... [Read More]

» MT-Textile 2 is available from Tribblescape
And has been for almost a month, but my blogging volume has been rather low lately. This long-awaited update to MT-Textile, created by Movable Type plugin wiz Brad Choate, includes far more features than are probably healthy for a “humane... [Read More]

» easy tags from Platypus
now that i am using moveable type i can type my news articles faster because i don’t have to worry about using any tags.. this is because i’m using a plug-in called textile to take care of writing all my tags for me (basically it means i ca... [Read More]

» MT-Textile and SmartyPants from fling93 loves fishies
Here’s a little peak under the hood, which hopefully might be a helpful tip to other bloggers. In case those of you on my RSS feed were wondering why there were so many modified entries, it’s because I finally upgraded to Brad Choate’... [Read More]

» Boy did they ring in the changes. from phil wilson
marked or motivated by concern with the alleviation of suffering... [Read More]

14 Comments

Fantastic job! You've essentially covered all the issues I previously had with textile.

Test: ++{umbrella}++ ++{:)}++

However, using textile2 in your comments here sends this out: "MT::App::Comments=HASH(0x805c064) Use of uninitialized value in sprintf at lib/MT/Template/Context.pm line 1187."

Brad Author Profile Page said:

Oh, well that appears to be an error with MT itself.

Kevin Hale said:

That is sexy. Thank you.

__"If you specify a language modifier for "bc" blocks or for "@…@" strings, it will invoke the Code Beautifier to colorize the code."__

Brad - could you elaborate on how exactly you go about doing that? Where do you specify the language, i'll be so pleased to learn how!

Top stuff mate...this thing is just so bloody powerful now...just gotta learn how to use it all :)

Camilo said:

I feel like a guy that has received his first car: I do not know exactly how to use this, but it sure does look exciting!

ceejayoz said:

One minor quibble - I have a site with a query string in the URL for the extended entry (that tells the page to display that extended entry). e.g. http://www.domain.com/article/00001.php?display=full

Footnote links, however, don't link to the full version, so it doesn't work. Any way to add in a "url suffix" kinda thing?

Anonymous said:

I'm having a little difficulty implementing the "clear" block signature.

I had two images that I needed to insert in the middle of a blog entry, between two paragraphs. I floated the two images left and put a "clear" block signature on the next line, but the following text just floated left alongside the second image. I also noted that all block signatures that came after the "clear" block signature were ignored. After removing the "clear", the block signatures that were previously ignored were formatted correctly.

I would display the exact Textile2 formatting I used, but it's not rendered properly by the comments formatting.

Sonance said:

Oops, the previous comment was from me.

amix said:

I tried the

[excom]http://example.com

"Text to display":excom

but it does not work when using a seperate template, that includes nothing else, than rows of

[shortcut]URI

I added

<$MTInclude module="MyIncludes"$>

as very first line in all my textual templates (index, archives) and MyIncludes contains also this:

<$MTInclude module="MyLinks"$>

This is the file with the row of links in Textile2 format.

It does now work. All the shortcuts are written as text on top of each page.

Scott said:

From the writers guide:
"p A paragraph block.... newlines for XHTML content receive a
"

It would be nice to be able to turn the newline conversion off. For example, when word-wrapped text has been copied into an entry, I don't want automatic line breaks, and it is extremely annoying to remove the newlines.

Otherwise, the plugin is excellent.

Scott said:

Ooops, the entities above were converted back to tags after previewing. The first line should read:

From the writers guide:
"p A paragraph block.... newlines for XHTML content receive a <br />"

Bryant said:

Geeky feature request -- is there any chance of getting a special code for ? Something like ??Lord of the Rings?? would be superb.

Christian said:

Brad, is there any way that you can use Textile to create 'jump' links to content elsewhere on the same page? I thought your footnote link feature might do it, but it's a bit of a kludge to use that, if you know what I mean.

Christian;

There should be - I gave Brad the fix to do that.

What you do is use a relative link. First, do the link like this - "see here":#other_note

Then you can create a paragraph that's the target like this:

p(#other_note). Here's the other end of the link.

You should be able to use any block type that takes a CSS ID. You do need to be a little careful to not re-use ID strings between posts that appear on the same page.

About

This article was published on February 5, 2004 10:25 AM.

The article previously posted was Don't look now....

The next article is Looking for a web host?.

Many more can be found on the home page or by looking through the archives.

Powered by Movable Type