On Friday, 15 March 2013 22:12:12 UTC+5:30, Kim Stebel wrote:
>
> The subject pretty much says it all. Is this possible?
>
> I often have code blocks that start with http headers and then contain a 
> json document as the body of the http request. I would like to use the http 
> lexer for the former and the javascript lexer for the latter, but I think 
> that requires me to have two code-blocks. Am I wrong?
>

Hi Kim,

I think you would need two separate code-blocks.  You can use the same 
*input* file though!

.. literalinclude:: http.dump.txt
   :language: http
   :lines: 0-10.. literalinclude:: http.dump.txt
   :language: json
   :lines: 10-


 

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to