Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2013.03.22;
Скачать: CL | DM;

Вниз

Подсветка синтаксиса кода на форуме в Firefox и Chrome (beta)   Найти похожие ветки 

 
RWolf ©   (2011-12-15 17:09) [160]

[10.12.1976 14:30:16] JavaScript - http://delphimaster.net/view/1-1323780356/
User Javascript thread
Uncaught exception: TypeError: Cannot convert "this.parentNode" to object
Error thrown at line 118, column 5248 in <anonymous function: after>(E):
   this.parentNode.insertBefore(E,this.nextSibling)
called via Function.prototype.call() from line 118, column 11580 in <anonymous function: domManip>(J, M, L):
   var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0] .ownerDocument||this[0]),I),H=I.firstChild;
called from line 118, column 5151 in <anonymous function: after>():
   return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.ne xtSibling)})
called from line 118, column 10812 in <anonymous function: replaceWith>(E):
   return this.after(E).remove()
called from line 156, column 12 in <anonymous function>():
   $(this).replaceWith($("<pre/>").html($(this).html()));
called via Function.prototype.call() from line 118, column 15654 in <anonymous function: each>(G, K, F):
   for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H])
called from line 118, column 2276 in <anonymous function: each>(F, E):
   return o.each(this,F,E)
called from line 153, column 2 in highlightCode():
   $("code").each(function() {
called from line 148, column 0 in <anonymous function>():
   highlightCode();
called from line 134, column 0 in program code:
   (function() {

Opera 11.60, WinXP.


 
Омлет ©   (2012-02-20 10:15) [161]


> Kerk ©


В стиле http://roman.yankovsky.me/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/styles/shCore.css?ver=3.0.83c
замени, пожалуйста,

 white-space: pre !important;

на

 white-space: pre-wrap !important;

чтобы не появлялось горизонтальной полосы прокрутки, когда строка кода не влазит в экран.


 
Kerk ©   (2012-02-20 13:22) [162]

Заменил.
Может потребоваться переустановить скрипт, либо каким-то образом очистить кэш.


 
Омлет ©   (2012-02-20 13:35) [163]

Спасибо, работает.


 
вопросец   (2012-02-20 16:57) [164]

Удалено модератором


 
вопросец   (2012-02-20 16:57) [165]

Удалено модератором


 
вопросец   (2012-02-20 17:45) [166]

Удалено модератором



Страницы: 1 2 3 4 5 вся ветка

Текущий архив: 2013.03.22;
Скачать: CL | DM;

Наверх




Память: 0.74 MB
Время: 0.079 c
6-1259931784
Kanaris
2009-12-04 16:03
2013.03.22
Как реализовать "ретранслятор" запросов через сокеты?


15-1329894286
Loginov Dmitry
2012-02-22 11:04
2013.03.22
Новый адрес моего сайта


15-1337460294
Pit
2012-05-20 00:44
2013.03.22
Лига чемпионов, финал!


15-1338371588
Dmitry87
2012-05-30 13:53
2013.03.22
Windows XP -> VirtualBox -> Windows 8


15-1347621308
Фпа
2012-09-14 15:15
2013.03.22
программист