Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Jun 2014, 20:33
ajhalls ajhalls is offline
 
Join Date: Nov 2006
Add Codemirror to AdminCP for Syntax Highlighting

I have been spoiled using text editors with syntax highlighting and always wanted to add it to the admincp template editor. If you want to have it too, here you go. Download CodeMirror and place the extracted folder in your forum root "/forum/codemirror"

Then in the admincp/template.php file I added the following lines

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I added mine on line 125 like so:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then scroll way down to line ~2908 and add this part. It HAS to be executed after the textarea has been rendered and populated.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And you are done!
Here is a screenshot of what it looks like:

Last edited by ajhalls; 11 Jun 2014 at 21:58.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:35.

Layout Options | Width: Wide Color: