Home Help Center

Retaining square brackets in slice2html output

gwvdlindengwvdlinden Member Gwendolyn van der LindenOrganization: SC SolutionsProject: Bridge health monitoring system
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.

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi Gwen,

    You can escape the opening bracket like this:

    /** Legal values are \[1,2,3] **/

    Regards,
    Mark
  • gwvdlindengwvdlinden Member Gwendolyn van der LindenOrganization: SC SolutionsProject: Bridge health monitoring system
    Ah, quite simple. Thanks!
Sign In or Register to comment.