[Moin-user] bold in code blocks?
James Wagner
James.Wagner at mci.com
Fri Jul 15 09:28:31 EDT 2005
The "{{{#!syntax" parser calls encsript. For certain file types (#!syntax
clips #!syntax cpp) I've modified the enscript config file to recognize what
we use for code review comments, and make the bold italic red:
// Normal comment
//^^jjw code review comment
some code;
I also changed it to recognize "'''" and bold the entire line. I was hacking
it quickly and didn't figure out how to get it to eat the "'''" or bold just
the text between the opening/closing '''. So - not a perfect solution, but
it got done what I wanted and was quick.
If interested, I can send you my /usr/share/enscript/enscript.st file. I'm
sure with some effort (or knowledge) I could have done better, but again...
It was a pretty quick hack. :)
James.
> -----Original Message-----
> From: moin-user-admin at lists.sourceforge.net
> [mailto:moin-user-admin at lists.sourceforge.net] On Behalf Of
> skip at pobox.com
> Sent: Friday, 15-Jul-2005 5:04 AM
> To: Juergen Hermann
> Cc: moin-user at lists.sourceforge.net
> Subject: Re: [Moin-user] bold in code blocks?
>
>
>
> Juergen> mumble mumble:
> Juergen> `begin` '''`bold`''' `end`
>
> Juergen> it's no code display, but indented, and you have your
> Juergen> highlighting
>
> How do I keep the code example from wrapping as the browser
> width changes? That's one of the primary benefits of {{{...}}}.
>
> (BTW, I have other abuses this Tavi code does, but I'll spare
> you the gory details and instead try to convince the authors
> of said code they are wrong and should change. ;-)
>
> Skip
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration
> Strategies from IBM. Find simple to follow Roadmaps,
> straightforward articles, informative Webcasts and more! Get
> everything you need to get up to speed, fast.
> http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Moin-user mailing list
> Moin-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user
>
More information about the Moin-user
mailing list