ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

CodeRef macro not working in wiki

asked 2014-07-03 20:27:29 -0600 So on this page, the CodeRef macro didn't work, and I've even tried to copy-paste the corresponding section in

==== CodeRef ====
In a tutorial, you want to reference a code block that you have created earlier in the tutorial you can use `CodeRef`. 
#!cplusplus block=blockname
is super 
and awesome

You can then use the `CodeRef` macro to refer to it

This then looks like:


the exact same section which works on the "writing tutorials" page didn't work on "writing a tf listener" page.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-04 16:18:34 -0600

130s gravatar image

updated 2014-07-14 04:28:04 -0600

Looking at the change you (assumed by the user name) made, I guess you've figured it out somehow by yourself; As the tutorial you referred to points out:

Note that #!cplusplus or #!python line needs to be in a new line (ie. new line after three beginning parenthesises).

it seems that a new line is required with CodeRef, which you did in your commit.

Update 7/14/2014) Anyways, for referring to codes on github, it looks like GetCode replaces CodeRef macro.

edit flag offensive delete link more


I did make a new line for that code, but it seems that might not be the case (or just the website take effect with a delay, not in real time) as the page remains the same after I did the change. and when I come back a day later, everything is fine.

AzureViolin gravatar image AzureViolin  ( 2014-07-11 04:49:04 -0600 )edit

Question Tools


Asked: 2014-07-03 20:27:29 -0600

Seen: 124 times

Last updated: Jul 14 '14