This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
ru:how_to:editor_configuration_syntaxhighlight [2013/10/21 08:55] Arkady [Как работать с подсветкой] |
ru:how_to:editor_configuration_syntaxhighlight [2013/10/21 08:56] Arkady [Отредактируйте файл template.php вашей темы] |
||
---|---|---|---|
Line 50: | Line 50: | ||
===== Отредактируйте файл template.php вашей темы ===== | ===== Отредактируйте файл template.php вашей темы ===== | ||
- | you will have to add some stylesheets and scripts to your template-header, otherwise the visual effect of the syntax-highlighter will not work. | + | Теперь для обеспечения работы подсветки добавьте ссылки на необходимые файлы стилей и скрипты в секцию <head> файла шаблона. |
<code> | <code> | ||
<!-- SyntaxHighlighter --> | <!-- SyntaxHighlighter --> | ||
Line 62: | Line 62: | ||
</code> | </code> | ||
- | In case that the syntaxhighlighting still does not work at your site, you might add one more script-tag to your template.php: | + | Если после этого подсветка синтаксиса на вашем сайте все-таки не работает, попробуйте добавить еще один скрипт в файл шаблона template.php: |
<code> | <code> | ||
<script type="text/javascript">SyntaxHighlighter.all()</script> | <script type="text/javascript">SyntaxHighlighter.all()</script> |