- This topic has 7 replies, 3 voices, and was last updated 3 years ago by Tom.
November 24, 2017 at 11:47 am #432996Halil
I am not sure this has anything to do with gp but I am unable to add line numbers to code lines by using below tags.
I know by default there is no line numbering with above code but I have tried almost every syntax highlighter plugin without a success. Interestingly nothing happens. When I try basic themes they work but now with gp (I am using child theme).
Do u have any idea about this?GP Premium 1.5.5November 24, 2017 at 2:32 pm #433147LeoStaffCustomer SupportNovember 24, 2017 at 11:27 pm #433461Halil
sure. I am trying to add line numbers to code part u see on this page https://powerbi.istanbul/pbi-swissknife/
I have used
<code>tags for this. (The code start with something like = DIVIDE ..)
Tried many highlighter plugins (like this one http://alexgorbatchev.com/SyntaxHighlighter/ ), none of them are working. When I switch to tweenty themes they are working, but not with my gp child theme.November 25, 2017 at 6:26 am #433688LeoStaffCustomer SupportNovember 25, 2017 at 7:09 am #433792Halil
I didnt say pre and code tags are not working. I am saying, I am not able to add LINE NUMBERS to my codes with any plugin I tried. When I switch to tweenty theme, I am able to do this with below plugin (for example)
http://alexgorbatchev.com/SyntaxHighlighter/ See line numbers at the beginning of each line. This is something I am not able to add with gp.November 25, 2017 at 9:58 am #433927TomLead DeveloperLead Developer
Hmm, there shouldn’t be any difference between GP and any other theme in this respect.
Can you link me to a page where it’s not working in GP?November 25, 2017 at 10:18 am #433951HalilNovember 25, 2017 at 9:28 pm #434333TomLead DeveloperLead Developer
It looks like Syntax Highlighter requires jQuery, and you have a jQuery not defined error.
Perhaps try excluding jquery.js from your caching/minifying plugin.
- You must be logged in to reply to this topic.