John Gabriele
2006-Jun-25 02:26 UTC
pre, code, ```, and a "bc." marker. Was "Re: shortcut for full url as the linktext?"
On 6/18/06, Iain Haslam <iainhaslam at gmail.com> wrote:> > BTW, I really like the new > > > > ```source > > code > > ``` > > > > syntax. *Huge* timesaver. > > Continuing this particular off-topicness: Lucas, are you aware or in > favour of the bc(code). syntax already being used for this [1]? I > mentioned it previously on the list [2], but elicited no response. > > Iain. > > [1] http://blog.thought-mesh.net/mt-static/docs/mtmanual_textile.html > [2] First post here: > http://rubyforge.org/pipermail/redcloth-upwards/2006-March.txtSorry for the late reply... Iain, how would "bc." work for multi-line code snippets with spaces between some lines? For example, with ''bq.'', if I break a line, I leave the blockquote. It would seem to me that tags you can open and close (```like these```) would be more suitable for putting chunks of code in. BTW, I''d love to see ```(ruby) whatever``` give me syntax highlighted code. :) Not sure I''ve installed the svn version correctly, but putting anything in parentheses after the ``` doesn''t seem to produce any extra "class=ruby" at all... I just get that extra text (like, say, ''(ruby)'') inside my pre/code tags. ---John
Iain Haslam
2006-Jun-27 09:41 UTC
pre, code, ```, and a "bc." marker. Was "Re: shortcut for full url as the linktext?"
> Iain, how would "bc." work for multi-line code snippets with spaces > between some lines? For example, with ''bq.'', if I break a line, I > leave the blockquote. It would seem to me that tags you can open and > close (```like these```) would be more suitable for putting chunks of > code in.I would suggest using the "extended blocks" bc.. notation. It indicates that formatting should remain the same until the next formatting instruction. It''s useful for bq.. too, although I don''t think redcloth currently supports it. I have seen this in other textile implementations, eg [1], but I don''t think redcloth does it yet.> BTW, I''d love to see ```(ruby) whatever``` give me syntax highlighted code. :)Great that someone else thinks the same. My implementation (bc. only) was based on an old version of redcloth, but I''m sure it wouldn''t take me long to get it working against the svn version. Regards, Iain. [1] http://www.brajeshwar.com/faq/mtmanual_textile2.html#extended_blocks