[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Code examples in docs
From: |
Urs Liska |
Subject: |
Re: Code examples in docs |
Date: |
Thu, 7 Apr 2016 07:43:07 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
Am 06.04.2016 um 09:37 schrieb Urs Liska:
> Hi Carl,
>
> Am 06.04.2016 um 02:09 schrieb Carl Sorensen:
>> On 4/5/16 5:09 PM, "address@hidden on
>> behalf of Urs Liska" <address@hidden on
>> behalf of address@hidden> wrote:
>>
>>> Hi,
>>>
>>> can someone tell me where I should look for code that generates code
>>> examples in the HTML docs?
>> I assume you mean the texi/latex code that takes the snippet and puts it
>> into the document as a code fragment?
>>
>> I think it may be in python/book_html.py, but I'm not 100% sure.
> Thanks, that looks indeed promising. I'll look into it to see if I can
> get syntax highlighting for the code examples to work from there.
>
> Best
> Urs
Hm, I'm puzzled.
I must say that this file and particularly
BookHTMLOutputFormat.snippet_output() looks like it's exactly the code
I'm looking for. What I need is the code that wraps the source code of
any LilyPond snippet in the docs in
<blockquote><pre></pre>...image...</blockquote>.
However, modifying this didn't seem to have any effect, so I even went
brute force up to emptying the complete file. Still make doc works
without issues and changes. So obviously the code wasn't executed at all.
I found two files: python/book_html.py and python/out/book_html.py but
*both* don't seem to be of any help.
Any pointers where I can look further?
Urs
>
>> Carl
>>
>>
>>
- Code examples in docs, Urs Liska, 2016/04/05
- Re: Code examples in docs, Simon Albrecht, 2016/04/05
- Re: Code examples in docs, Carl Sorensen, 2016/04/05
- Re: Code examples in docs, Urs Liska, 2016/04/06
- Re: Code examples in docs,
Urs Liska <=
- Re: Code examples in docs, Noeck, 2016/04/07
- Re: Code examples in docs, Urs Liska, 2016/04/07
- Re: Code examples in docs, Urs Liska, 2016/04/07
- Re: Code examples in docs, Carl Sorensen, 2016/04/07
- Re: Code examples in docs, David Kastrup, 2016/04/07
- Re: Code examples in docs, David Kastrup, 2016/04/07
- Re: Code examples in docs, Urs Liska, 2016/04/07
- Re: Code examples in docs, Urs Liska, 2016/04/07
- Re: Code examples in docs, Carl Sorensen, 2016/04/07
- Message not available
- Message not available
- Message not available
- Re: Code examples in docs, Urs Liska, 2016/04/09