|Subject:||Re: [eLyXer-users] Indented, color-coded Code Samples with eLyXer|
|Date:||Sat, 12 May 2012 15:44:29 +0200|
On Tue, May 8, 2012 at 9:45 AM, Jack Desert <address@hidden> wrote:Alex responded:
>> What's the best way to paste a code sample (Ruby, in my case) into a
>> LyX document and export it to html while
> > A. Preserving the white space indentation
> > B. Color coding the keywords so that strings, variables, and
>> comments are all a different color
What about the case of simply getting the indenting whitespace to show
up in html? Does eLyXer support this? If not, what approach would you
A. Within a <pre> tag, replace two spaces in a row with
B. Within a <pre> tag, replace two spaces in a row with <div
Ideally, someone reading my code snippet online should be able to copy
and paste it into their own text editor and also have the indentation
show up properly. This suggests that solution "A" may be better.
And finally, is this something that would benefit all users of eLyXer?
If so, I'd like to write an eLyXer patch. If not, I'll just build the
functionality into LyXBlogger.
|[Prev in Thread]||Current Thread||[Next in Thread]|