coloring code in the admin panel ?

jeremix / 2010-03-05 11:07:35   

Hi,
I was wondering if there was a simple way to detect and color code in the backend textfields, just to have a better view when i have a lot of formated text.
Does anybody knows how to do this ?

Thanks !

(no url to give for now !)

jeremix / 2010-03-05 11:10:31   

to be more precise (sorry for my bad english...), the idea is to highligth html tags in backend textfields...

jeremix / 2010-03-05 12:32:23   

I tried to modify assets/tpl/index.php file, using highlight.js script (http://softwaremaniacs.org/soft/highlight/en/):

  1. <script type="text/javascript" src="site/highlight/highlight.pack.js"></script>
  2.     <script type="text/javascript">
  3.       hljs.initHighlightingOnLoad();
  4.     </script>

But i guess that this kind of script is not working with input textfields...

Vaska A / 2010-03-05 12:35:09   

I have to be honest here, and I know that you probably don't have much experience with this kind of thing, but it's rather important that you understand what you are doing.

The script you are using will not do what you want...for the fundamental reason that it is not even possible to highlight and color text within a textarea.

Hacking up the backend is not a good idea...you're going to have to simply get used to looking at html.

jeremix / 2010-03-05 12:48:49   

Ok, thanks for answering... you killed my dream but saved me time ;-)

This thread has been closed, thank you.