Question: unable to make line-numbers work
See original GitHub issueI 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:
- Created 8 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I also had the same problem, that plugin
line-numbers
was not displayed. The problem was, that I had a custom css forpre
tag, that overwritespadding
from plugin css. So, line numbers were not displayed because of the wrongpadding
.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.