NetHackWiki:Source file line numbers

From NetHackWiki
Jump to navigation Jump to search

Most source files in the Source namespace are marked up with line numbers. When you create a internal link to such a file, you can link to a particular line number in that file.

Source files on GitHub also have line numbers. When you create an external link, you can link to a particular line number.

Template support

The refsrc and sourcecode templates accept a line number argument. refsrc supports line numbers in both internal source files (those hosted on NetHackWiki) and external source files (those hosted on GitHub and elsewhere). sourcecode supports only internal source files.

Examples

Examples:

Bugs

Due to a longstanding bug, source files hosted on NetHackWiki and marked with __MIXEDSYNTAXHIGHLIGHT__ do not provide line numbers. This includes most source files from: