[pmwiki-users] Re: CodeBlock recipe (was: Idea for extension of speciallist syntax)

chr at home.se chr at home.se
Wed Jan 26 08:46:03 CST 2005


On Mon, 24 Jan 2005, Dominique Faure wrote:

> You have to put (:code:) block on the item's line to let it remain enclosed 
> within:
> 
> * bla bla (:code:) [= ... =]
> 
> or
> 
> * tot titi\
> (:code:) [=
> ...
> =]

Ok, that's what I figured. Btw, with this extension you could simply 
write:

* tot titi
  (:code:) [=
  ...
  =]

I.e., you wouldn't need to add backslash if you indented the markup 
properly.

> Not using antislash would start a new block context and break current list 
> flow (more visible with ordered lists). Default indentation is following 
> list rules (overloadable via CSS).

But as for indentation... what if the effect I want to achieve is 
something where the source looks more indented than the list item?

With plain text I could achieve this indentation by writing the markup

	* tot titi
	--> some indented text
	* 2nd item

However, this would break the current list flow as you say. Perhaps an 
extra parameter to (:code:) controlling how much the entire block is 
indented?

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list