welovecoding / vote4code

A website for fighting about code styles and code conventions. ⚔️
https://vote4code.com
MIT License
15 stars 0 forks source link

Showing line numbers next to code blocks #71

Closed bennycode closed 7 years ago

bennycode commented 7 years ago

@lipis It seems to be ready but I get the exception: highlight.js not detected! I guess the problem exists because we hacked in the loading of highlight.pack.js (https://github.com/welovecoding/vote4code/pull/14) and highlightjs-line-numbers.js must be included in scripts after the original highlight.pack.js but I don't know how to do it because including highlight.pack.js is different from the original gae-init way.

lipis commented 7 years ago

I guess that's because the highlight.pack.js is loaded after the numbers as it's became part of the source and not the external libraries.. I left a comment.. maybe that will fix it :)

bennycode commented 7 years ago

@lipis, you trick solved it! It's working now:

Screenshot