Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

rst highlighting is not working?

Zhichao Han November 19, 2015

The following example code is not working in my rst wiki file.

 

.. sourcecode :: cpp

    template<typename TIN, typename TOUT>
    class ILayer: public joseph2::base::BaseIntf {

    public:
        virtual void initialize ( const JoYAMLNode &node ) =0;

        virtual TOUT const & feedforward ( TIN const &x ) =0;
        virtual TOUT const & getOutput() const =0;

        virtual size_t getDimInput() const =0;
        virtual size_t getDimOutput() const =0;
        virtual string toString() const =0;

    };

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
dundeemt December 23, 2015

Nor does:

 

 

.. sourcecode:: python
    def wiki_rocks(text):
        formatter = lambda t: "funky"+t
        return formatter(text)

It keeps stripping out my blank lines but they are there.  The example from the page linked page does not work, nor does using the <code> tool.  Something is very much broken and appears to be broken for more than a month now.   Please fix.

Mark Morgan February 18, 2016

I have also tried it with an extra line between the sourcecode line and the def line, but it still doesn't work.  It is formatted as code, but not syntax highlighted.

19 Feb 2016

TAGS
AUG Leaders

Atlassian Community Events