Archived
This forum has been archived. Please start a new discussion on GitHub.
Retaining square brackets in slice2html output
Hi,
It seems slice2html is converting [xyz] fragments in the documentation strings even if the xyz part is not a valid name. I want to use e.g. [1,2,3] in the documentation without it being converted to typewrite font and being stripped of the brackets. How can I achieve that?
Thanks,
Gwen.
It seems slice2html is converting [xyz] fragments in the documentation strings even if the xyz part is not a valid name. I want to use e.g. [1,2,3] in the documentation without it being converted to typewrite font and being stripped of the brackets. How can I achieve that?
Thanks,
Gwen.
0
Comments
-
Hi Gwen,
You can escape the opening bracket like this:
/** Legal values are \[1,2,3] **/
Regards,
Mark0 -
Ah, quite simple. Thanks!0