Hi, I have a couple of webgen textile formatting questions. Please feel free to refer me to a textile mailing list if there is one that is more appropriate than here. First, how can I insert three dashes (---) in a <code> or <pre> block? I want to include a YAML file example, and the yaml document separator is three dashes, but this conflicts with the separator in webgen. Example: <pre> --- # above line causes error </pre> Second, how can I indent a <pre> block in an ordered list, but still make it highlight at the first colum of the preformatted text? Example: * bulleted instruction to cut and paste file contents <pre> the file contents </pre> * the file contents above are not indented with the bullets Thanks, -- Chad
> First, how can I insert three dashes (---) in a <code> or <pre> block? > I want to include a YAML file example, and the yaml document > separator is three dashes, but this conflicts with the separator in > webgen. > > Example: > > <pre> > --- > # above line causes error > </pre>Just escape the three dashes with a backslash! Like this: <pre> \--- </pre> The same goes for webgen tags: if you want to have {relocatable: bla} on your website, you need to escape the tag: \{relocatable: bla}!> Second, how can I indent a <pre> block in an ordered list, but still > make it highlight at the first colum of the preformatted text? > Example: > > * bulleted instruction to cut and paste file contents > <pre> > the > file > contents > </pre> > * the file contents above are not indented with the bulletsI tried the following in IRB and it seems to work: * bulleted instruction to cut and paste file contents <pre> the file contents </pre> * the file contents above are not indented with the bullets So, just indent the <pre> line so that it starts with the text of the first list item. Bye, Thomas
Perfect! Thanks for the ultra-fast response. Webgen rocks! -- Chad On 4/9/07, Thomas Leitner <t_leitner at gmx.at> wrote:> > First, how can I insert three dashes (---) in a <code> or <pre> block? > > I want to include a YAML file example, and the yaml document > > separator is three dashes, but this conflicts with the separator in > > webgen. > > > > Example: > > > > <pre> > > --- > > # above line causes error > > </pre> > > Just escape the three dashes with a backslash! Like this: > > <pre> > \--- > </pre> > > The same goes for webgen tags: if you want to have {relocatable: bla} > on your website, you need to escape the tag: \{relocatable: bla}! > > > Second, how can I indent a <pre> block in an ordered list, but still > > make it highlight at the first colum of the preformatted text? > > Example: > > > > * bulleted instruction to cut and paste file contents > > <pre> > > the > > file > > contents > > </pre> > > * the file contents above are not indented with the bullets > > I tried the following in IRB and it seems to work: > > > * bulleted instruction to cut and paste file contents > <pre> > the > file > contents > </pre> > * the file contents above are not indented with the bullets > > So, just indent the <pre> line so that it starts with the text of the > first list item. > > > Bye, > Thomas > _______________________________________________ > webgen-users mailing list > webgen-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/webgen-users >