Message from discussion Crunchy comments....
Received: by 10.101.131.32 with SMTP id i32mr243288ann.15.1253701663450; Wed,
23 Sep 2009 03:27:43 -0700 (PDT)
Date: Wed, 23 Sep 2009 03:27:43 -0700 (PDT)
X-HTTP-Via: 1.1 webwasher (Webwasher 126.96.36.19994)
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:188.8.131.52)
Subject: Re: Crunchy comments....
From: Johannes Woolard <johannes.wool...@gmail.com>
To: crunchy-discuss <firstname.lastname@example.org>
Content-Type: text/plain; charset=ISO-8859-1
On Sep 22, 4:39=A0pm, Andre Roberge <andre.robe...@gmail.com> wrote:
> Hi everyone,
> In an earlier incarnation, Crunchy had a feature where hidden comments
> could be inserted into an html file - and revealed by Crunchy. =A0This
> feature is no longer present in Crunchy.
> I am thinking of reintroducing it, and am wondering about the syntax.
> What I have in mind would be something like:
> <div class=3D"crunchy_hidden">...some text</div> which would be
> transformed by Crunchy into
> <div class=3D"crunchy_comment">...some text</div>, with some default
> styling provided for the class crunchy_comment.
This was definately a good feature, and something we should bring
back. However, I would like to propose an alternative syntax making
use of html comments - something like:
<!--crunchy-- ...some text <h1>Some Markup</h1> -->
which would then be transformed into
<div class-"crunchy_comment">...some text <h1>Some Markup</h1></div>
This (IMHO) is more idiomatic, and also has the advantage of requiring
less work on the part of the turorial writers (no custom classes).
> The assumption is that tutorial writers would define the class
> "crunchy_hidden" to include visibility:hidden (!). =A0They also could
> override the default "crunchy_comment" style by including their own
> definition in a style file.
> All comments are welcome!