Modify

Opened 15 years ago

Last modified 5 years ago

#6172 assigned enhancement

Have the link at the top of the included source highlight the indicated section

Reported by: anonymous Owned by: ttressieres
Priority: normal Component: IncludeMacro
Severity: normal Keywords:
Cc: Trac Release: 1.4

Description

On the rendered wiki page, this macro produces a box containing source code, line numbers, and a "title bar" of sorts with a hyperlink to the file in the browser. I think it would be nice if this hyperlink would:

  1. Link to a line just prior to the section being illustrated. (5 lines before?)
  2. Highlight the indicated section (between the start= and end=)

Kudos on the plugin! Very nice!

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by Ryan J Ollos

Owner: changed from Chris Heller to ttressieres
Status: newassigned

comment:2 Changed 5 years ago by ttressieres

to have an hyperlink that respect the source link syntax, such as

source:svn/monprojet/trunk/trac.ini@head:27-30#L25

to display trac.ini file at @head revision, starting from line 25 with lines 27 to 30 highlighted

comment:3 Changed 5 years ago by ttressieres

Component: IncludeSourcePartialPluginIncludeMacro
Trac Release: 0.111.4

this plugin is deprecated, use IncudeMacro instead

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain ttressieres.

Add Comment


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

 
Note: See TracTickets for help on using tickets.