Новое оформление кода для ucoz сайтов
В верхнюю часть сайта вставляем
Код
<script src="/js/shCore.js"></script>
<script src="/js/shBrushJScript.js"></script>
<script src="/js/codes.js"></script>
<style>
@import url(/css/shCore.css);
@import url(/css/shThemeDefault.css);
</style>
<script src="/js/shBrushJScript.js"></script>
<script src="/js/codes.js"></script>
<style>
@import url(/css/shCore.css);
@import url(/css/shThemeDefault.css);
</style>
Далее перед закрывающим тегом body, т.е. в самый низ вставляем:
Код
script>
jQuery('div.bbCodeBlock').each(function(){
code = jQuery(this).find('div.codeMessage').html();
code = code.replace(/<br>/ig,'\r\n');
code = code.replace(/<!--uzc-->/ig,'');
code = code.replace(/<!--\/uzc-->/ig,'');
jQuery(this).replaceWith('<pre class="brush: js; first-line: 1;ruler: true; option: false;">'+code+'</pre>');
});
</script>
<script>
//<![CDATA[
SyntaxHighlighter.all();
//]]>
</script>
jQuery('div.bbCodeBlock').each(function(){
code = jQuery(this).find('div.codeMessage').html();
code = code.replace(/<br>/ig,'\r\n');
code = code.replace(/<!--uzc-->/ig,'');
code = code.replace(/<!--\/uzc-->/ig,'');
jQuery(this).replaceWith('<pre class="brush: js; first-line: 1;ruler: true; option: false;">'+code+'</pre>');
});
</script>
<script>
//<![CDATA[
SyntaxHighlighter.all();
//]]>
</script>
Вот и все ) НЕ ЗАБУДЬТЕ СКАЧАТЬ АРХИВ !!!
Жалоба