Overview
Linenumbers is a simple text filter which adds line numbering to content.
This module is especially useful when modules like Syntax highlighter and Geshi Filter are overkill and all you need is numbered lines for something simple like:
- Poems
- Legal documents
- Screenplays
- Dialogue scripts
- Technical documents
Drupal 7
Settings
- Display style:
- Choosing
blockwill turn on line numbers for every html element and separate the line numbers from the content area.
Choosinginlinewill give the option to specify which HTML elements to give line numbers to. Withinline, elements which are not specified are still counted however, their line numbers are not displayed. Also, as you might expect, the numbers themselves will be prepended to the specified tags.
- Numbered elements:
- Gives the user the ability to enter all the HTML elements for which to show line numbers in the format:
p,h3,ol,h5,address. Currently, this is only usable with theinlinesetting of Display style.
I have no intention of maintaining, fixing, or updating the Drupal 7 version of this module.
Drupal 8
The Drupal 8 version of this module is much simpler. Simply enable the filter and see linenumbers.
Similar Modules
Both Syntax highlighter and Geshi Filter utilize line numbering.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Content editing experience, Content display
1 site reports using this module
- Created by carwin on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.

