Главная страница
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
Время: 1.249 c
15-1348522617
Inovet
2012-09-25 01:36
2013.03.22
Шнобелевская премия 2012


15-1338831950
ProgRAMmer Dimonych
2012-06-04 21:45
2013.03.22
Кто-нибудь знает, что стало с flatassembler.net?


2-1332577830
Pcrepair
2012-03-24 12:30
2013.03.22
TStringList и перевод символов в нижний регистр


15-1337791087
Avatar
2012-05-23 20:38
2013.03.22
Посоветуйте роутер


2-1336839148
тщгыук
2012-05-12 20:12
2013.03.22
а ля Self внутри with do