code examples are made like this [[[ Transcript show: 'hello"; show: ' world"; cr;]]] There is also additional syntax if your language is not smalltalk and some other stuff. Take a look at pillar docs. you can also have a workaround for multi line comments. Damien has created a pillar mode for emacs, and there is shortcut to comment multiple lines. So you could write your comment in multiple lines , select those lines and use the shortcut. The shortcut is the regular shortcut that emacs uses in all modes to comment things out for multiple lines. I use this technique to disable part of the pillar code when I try to find bugs. On Sun, Mar 8, 2015 at 12:09 PM, Peter Uhnak <i.uhnak@gmail.com> wrote:
H If pillar is line based, how I can make code examples?
Actually, maybe this could work, I'll try it later. {{{comment: My Multiline Comment }}} ------------------------------ From: stepharo <stepharo@free.fr> Sent: â3/â8/â2015 8:21 AM To: Any question about pharo is welcome <pharo-users@lists.pharo.org> Subject: Re: [Pharo-users] Pillar multiline comment
Pillar is line based. You can put a comment to each of the line beginning.
Le 7/3/15 19:32, Peter Uhnák a écrit :
Is it possible to create multiline comments in Pillar?
For example I want to add code that I used to create a visualization, but I want to show the user only the image (but want to keep the code so I can regenerate if needed).
Thanks, Peter