nerbert
08-03-2014, 10:00 PM
This product replaces my earlier EditArea version https://vborg.vbsupport.ru/showthread.php?t=288362 using the more advanced Code-Mirror editor.
With this product installed you will have a small version of the Code-Mirror editor instead of the plain textarea for editing templates, plugins and other code. You can get the full page version with all the features by clicking the Large Edit Box button.
With my toolbars the Code-Mirror editor provides basic code editor features: syntax highlighting, search and replace, text matching, undo/redo, font size and syntax selection, auto indent, tab size, tabs/spaces, go to line, word wrapping toggle and code collapsing (click line numbers)
Installation:
1. Upload the entire codemirror-3.0 folder to the clientscript folder.
2. Name out a copy of admincp/textarea.php (for example textarea_ORIGINAL.php) and upload the new version of textarea.php file to the admincp folder.
(The best way to do this is first create a "zips" folder in your main forum directory, upload the zip file to it and use cPanel or other server manager to unzip the file into the new folder. Then you can copy or move files wherever you want them.)
3. Open the new version of admincp/textarea.php, scroll down to the commented code at the bottom and copy the print_textarea_row() function.
4. Name out a copy of includes/adminfunctions.php (for example adminfunctions_ORIGINAL.php). Open the file and find the function print_textarea_row() on line 999 in vB4 or earlier in vB3, change the name to print_textarea_row_old() and paste in the new version you copied from textarea.php.
It should be ready to go.
With this product installed you will have a small version of the Code-Mirror editor instead of the plain textarea for editing templates, plugins and other code. You can get the full page version with all the features by clicking the Large Edit Box button.
With my toolbars the Code-Mirror editor provides basic code editor features: syntax highlighting, search and replace, text matching, undo/redo, font size and syntax selection, auto indent, tab size, tabs/spaces, go to line, word wrapping toggle and code collapsing (click line numbers)
Installation:
1. Upload the entire codemirror-3.0 folder to the clientscript folder.
2. Name out a copy of admincp/textarea.php (for example textarea_ORIGINAL.php) and upload the new version of textarea.php file to the admincp folder.
(The best way to do this is first create a "zips" folder in your main forum directory, upload the zip file to it and use cPanel or other server manager to unzip the file into the new folder. Then you can copy or move files wherever you want them.)
3. Open the new version of admincp/textarea.php, scroll down to the commented code at the bottom and copy the print_textarea_row() function.
4. Name out a copy of includes/adminfunctions.php (for example adminfunctions_ORIGINAL.php). Open the file and find the function print_textarea_row() on line 999 in vB4 or earlier in vB3, change the name to print_textarea_row_old() and paste in the new version you copied from textarea.php.
It should be ready to go.