Opened 7 years ago

Closed 6 years ago

# I would be nice to be able to set the title of the box ...

Reported by: Owned by: anonymous nuald normal CodeExampleMacro normal 0.11

### Description

In a page with a lot of CodeExamples, having the possibility to replace Example (or Correct example, ...) by your own text would be a must.

### comment:1 Changed 7 years ago by rjollos

Seems like a reasonably useful enhancement. Now that the SELECT_ALL is shown on the right side of the box, a user-specified title could be displayed such as EXAMPLE: My example, rather than just EXAMPLE: ... and so forth for the other macros. Or perhaps replace the EXAMPLE: text entirely with user-defined text.

### comment:2 Changed 6 years ago by nuald

• Resolution set to fixed
• Status changed from new to closed

Fixed in r9204

Sample usage (see the title parameter):

{{{
#!CodeExample
## type = good
## title = Fibonacci implementation in Haskell
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
}}}


It will be rendered as: