Strict Standards: Declaration of PluginAceadminpanel_ModuleLang::Get() should be compatible with ModuleLang::Get($sName, $aReplace = Array, $bDelete = true) in /home/deer/ on line 21 Strict Standards: Declaration of PluginAceadminpanel_ModuleViewer::_SortBlocks() should be compatible with ModuleViewer::_SortBlocks($a, $b) in /home/deer/ on line 24 подсветка кода / Поиск по тегам / BPOU - Bitrix blog

Подсветки PHP в редакторе

Для реализации подсветки php-синтаксиса в редакторе, вставляем в /bitrix/php_interface/init.php следующее:

# code writen by Евгений Петриченко
if ($_SERVER['SCRIPT_NAME']=="/bitrix/admin/fileman_file_edit.php")
   AddEventHandler("main", "OnEpilog", "InitPHPHighlight");
   function InitPHPHighlight()
      global $APPLICATION;
            $string='<link rel="stylesheet" href="">
      <script src=""></script>
      <script src=""></script>
      <link rel="stylesheet" href="">
      <link rel="stylesheet" href="">
      <script src=""></script>
      <script src=""></script>
      <script src=""></script>

      .CodeMirror {
        overflow: auto;
        height: 500px;
        width: 1000px;
        line-height: 1em;
        font-family: inherit;
      .CodeMirror pre{

        line-height: 1.2em;
   $init='<script type=\'text/javascript\'>
            var nl=document.getElementsByTagName("textarea");

            var editor = CodeMirror.fromTextArea(nl[0], {
                     lineNumbers: true,
                     matchBrackets: true,
                     mode: "application/x-httpd-php",
                     indentUnit: 8,
                     indentWithTabs: true,
                     enterMode: "keep",
                     tabMode: "classic"