Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to put anchors on lines #209

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mbd-dbc-dk
Copy link

Added option to put anchors on lines: 'lineno-anchors', with default
value false.

If enabled, adds lineno anchors to all lines.

This is intended to be used when syntaxHighlighting a whole file, or
with a most one source fragment on the page.

It can then be used with something like this:
ref="somefile.html#lineno42".

In the SyntaxHighlighted page, you must write the body.onLoad
handler something this:
onLoad="SyntaxHighlighter.highlight(); location.hash=location.hash;"

value false.

If enabled, adds lineno<linenumber> anchors to all lines.

This is intended to be used when syntaxHighlighting a whole file, or
with a most one source fragment on the page.

It can then be used with something like this:
ref="somefile.html#lineno42".

In the SyntaxHighlighted page, you must write the body.onLoad
handler something this:
onLoad="SyntaxHighlighter.highlight(); location.hash=location.hash;"
@mbd-dbc-dk
Copy link
Author

Hi there

Can see you have not pulled this yet - could you let me know if you need anything, or if the pull request is not suited for inclusion?

@ghost ghost assigned alexgorbatchev Dec 16, 2013
@alexgorbatchev alexgorbatchev modified the milestones: 4.1, 4.0 Feb 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants