You simply have to align your code on "code-block" : add an extra space 
like that:

    .. code-block:: actionscript3
       :linenos:

       import com.mycomp.a.b.Class1;
       import com.mycomp.a.b.Class2;

Edouard

Le lundi 31 mars 2014 07:43:00 UTC+2, Ido Ran a écrit :
>
> Hi,
> I'm trying to add code block to my docs.
> I use this code:
>
> .. code-block:: actionscript3
>    :linenos:
>
>   import com.mycomp.a.b.Class1;
>   import com.mycomp.a.b.Class2;
>
> but it fails with this error:
>
> ERROR: Error in "code-block" directive:
>
> maximum 1 argument(s) allowed, 2 supplied.
>
>
> If I remove the :linenos: everything works great.
>
> What am I doing wrong?
>
>
> Thank you,
>
> Ido.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to