question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: unable to make line-numbers work

See original GitHub issue

I downloaded the library with core, default theme, all languages selected, line-highlight, line-numbers, file highlight, show language and highlight keywords plugins.

Then I include the js and the css on a page and I add the following html code:

<pre class="line-numbers"><code class="language-javascript">
Some javascript code here
</code></pre>

And the code is highlighted correctly, the language is shown at the top-right corner (so that plugin is working correctly) but I don’t get line numbers.

Am I doing something wrong?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
SergeyPodgornyycommented, Nov 20, 2018

I also had the same problem, that plugin line-numbers was not displayed. The problem was, that I had a custom css for pre tag, that overwrites padding from plugin css. So, line numbers were not displayed because of the wrong padding.

0reactions
manfercommented, Aug 4, 2015

I found the problem. The generated js and css files are fully dependant. You can’t build a css with a group of components selected and then change components and download only the js file because it won’t work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Line Numbering Option Not Available When Editing Word Doc ...
I'm trying to add line numbers to a document that is saved in DropBox and that I'm editing with Word for the web...
Read more >
Microsoft Word - Adding Line Numbers - YouTube
In this video you will learn how to add line numbers to your Microsoft Word document. We will also explore all the related...
Read more >
Inserting Line Numbers in MS Word Using Section Breaks
Your browser can't play this video. Learn more. Switch camera.
Read more >
Enable the display of line numbers in Visual Studio
Visual Studio has line numbering: Tools -> Options -> Text Editor -> All Languages -> check the "Line numbers" checkbox.
Read more >
line numbering - latex linenumbers do not work properly - TeX
However, I need both amsmath and amssymb packages. What I am experiencing is a generla problem or is related only to elsevier package?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found