Modify

Opened 5 years ago

Closed 4 years ago

#6697 closed enhancement (fixed)

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

Reported by: anonymous Owned by: nuald
Priority: normal Component: CodeExampleMacro
Severity: normal Keywords:
Cc: Trac Release: 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.

Attachments (1)

title.png (32.5 KB) - added by nuald 4 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 5 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.

Changed 4 years ago by nuald

comment:2 Changed 4 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
#!haskell
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
}}}

It will be rendered as:

Add Comment

Modify Ticket

Action
as closed The owner will remain nuald.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.