Hello,

"Stephen J. Barr" <stephenjb...@gmail.com> writes:

> Quick question. Is it possible to have a code fragment in a bulleted
> list? For example, I would like to do
>
> - This is interesting
>   - Level 2 for loop
>
> #+begin_src R
> for (i in 1:10) {
>     ...
> }
> #+end_src
>
>   - This should also be on level 2
>
> When I render this as HTML, the sentences "Level 2 for loop" and "This
> should also be on level 2" to be at the same depth, with the source
> code block in the middle. How do I do this?

You have to indent your whole code block so that it belongs to the list.
In other words, the "#+begin_src" line has to start at the "L" of "Level
2".

You may want to read the section 2.7 of the manual for more information.


Regards,

-- 
Nicolas Goaziou

Reply via email to