RSSAmplifier

Sylvain Durand · Oct 20, 2014

Using CSS to add line numbering

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

When you want to display a code listing with HTML, you use a <pre> tag in order to indicate that the text is preformatted, then inside one or multiple <code> tags to specify it is a code. Showing line numbers appears may be quite useful, and the methods to achieve this vary widely: many use Javascript or tables&hellip; Yet it is possible to achieve this in a simple way, using only CSS and HTML.…

Read on sylvaindurand.org

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.