Questions tagged [textile]

Textile is a lightweight markup language originally developed by Dean Allen and billed as a "humane web text generator". Textile converts its marked-up text input to valid, well-formed XHTML.

Textile is a lightweight markup language that converts its text input to valid, well-formed XHTML.

It also inserts character entity references for apostrophes, opening and closing single and double quotation marks, ellipses and em dashes.

Textile was originally implemented in PHP, but has been translated into other programming languages including Perl, Python, Ruby, ASP, Java and C#. Textile is distributed under a BSD-style license and is included with, or available as a plugin for, several content-management systems.

Wikipedia entry

127 questions
6
votes
2 answers

Rendering lightweight markup languages with maven

I would like to render project documentation in html from a lighweight markup language like markdown or textile. What's easiest way to do this?
Thomas Jung
  • 32,428
  • 9
  • 84
  • 114
6
votes
1 answer

Textile numbered headers

Like this similar question, but for textile, is it possible to instruct textile, that headers should be numbered? So h1. first section h1. second section h2. subsection would be rendered like: 1. first section 2. second section 2.1. subsection
pihentagy
  • 5,975
  • 9
  • 39
  • 58
5
votes
3 answers

How do I textile and sanitize html?

Now i ran into some stupid situation. I want the users to be able to use textile, but they shouldn't mess around with my valid HTML around their entry. So I have to escape the HTML somehow. html_escape(textilize("Foo")) would break textile…
Marcel Jackwerth
  • 53,948
  • 9
  • 74
  • 88
5
votes
3 answers

How can I obfuscate email addresses contained in 'free input' text fields in Django

In my models I often use text fields that are intended to contain large pieces of textile-formatted input. I'd like to automatically obfuscate any email addresses that are entered into these text fields, so that when they're printed in a template…
bitbutter
  • 580
  • 5
  • 15
5
votes
3 answers

Can I get my README.textile into my RDoc with proper formatting?

I like to use Textile or Markdown to write readme files for my projects, but when I generate the RDoc the readme file gets interpreted as RDoc and looks really horrible. Is there a way to make RDoc run the file through RedCloth or BlueCloth instead…
Theo
  • 131,503
  • 21
  • 160
  • 205
4
votes
1 answer

yard 0.7.3 fails to build my README in both markdown and textile

I've decided to convert the README file in a project of mine to markdown and have been using yard verify the documentation rendered out ok. So I installed rdiscount, changed README to README.md and tried: yard doc README.md which gave me a…
wwest
  • 47
  • 5
4
votes
2 answers

HTML entities in Textile

HTML entities are not displayed correctly in Textile because the ampersand is converted into & by the system. Is there any way to input e.g. ⌘ and actually get ⌘? Wrapping the entity in ==⌘== does disable Textile processing for…
vicvicvic
  • 6,025
  • 4
  • 38
  • 55
4
votes
2 answers

Grails gdoc editor support (esp IntelliJ)

Since Grails 1.2 there's a documentation engine included: gdoc. The documentation's syntax is based on the Textile format. Is there some editor support for this? My first choice would be a plugin for IntelliJ, second option on for vim or gedit. Any…
Stefan Armbruster
  • 39,465
  • 6
  • 87
  • 97
4
votes
5 answers

Regular expression to match a block of text up to the first double new line?

I'm making a simple Textile parser and am trying to write a regular expression for "blockquote" but am having difficulty matching multiple new lines. Example: bq. first line of quote second line of quote third line of quote not part of the…
Fourjays
  • 537
  • 1
  • 8
  • 16
4
votes
3 answers

How would you go about auto-detecting Textile versus Markdown?

I'm considering supporting both Textile and Markdown on a current project. I would prefer not forcing users to choose one or the other. Is there a way to auto-detect which the user is using? How would you go about this? I'd like to find / develop…
Andrew Hedges
  • 21,688
  • 16
  • 67
  • 79
3
votes
1 answer

Extendable/Customizable/Modular Lightweight Markup for PHP

Im planning a web application written in PHP (with Symfony) where I'd like to use a lightweight markup language. There will be two use cases in the app with different requirements: Short texts () where the user will need be able…
RoToRa
  • 37,635
  • 12
  • 69
  • 105
3
votes
1 answer

Ordered List within a Table Cell using Textile

I've got a Wiki which uses Textile to markup text. I'm trying to put a list within a table cell, and I can't seem to figure out how. I'm trying to replicate the following HTML in Textile:
Cell One Cell Two …
Rushi
  • 1,652
  • 3
  • 17
  • 24
3
votes
2 answers

Ruby, Textile: how to get plain text without tags and textile format

I have articles with bodies that are textile formatted text. I make full text search with sphinx and I want to highlight query in results. Sphinx give me something like this A *simple* _example_. I want to remove all…
petRUShka
  • 9,812
  • 12
  • 61
  • 95
3
votes
1 answer

Textile: how do I center all the text in the table cells?

So... here is my table | Locking | x | x | x | x | | Public / Private | x | x | x | Default: Private | now, how do I change it so that certain columns are centered, or that every cell is centered? or just a single cell?
NullVoxPopuli
  • 61,906
  • 73
  • 206
  • 352
3
votes
1 answer

Lightly styled text library for WPF?

Does anyone know of a lightly-marked-up-text to styled-text formatting library (ie. something like Markdown# or Textile.NET), but which produces a native XAML document (or rather, a FlowDocument model or similar that can be displayed directly in a…
Miral
  • 12,637
  • 4
  • 53
  • 93
1
2
3
8 9