Closed CezaryDanielNowak closed 12 years ago
the real problem is that when opied the the overlay < div >, HTML tags in the ontent are parsed, so it's a big mess
adeed to todo list
I was wondering if there is a way to highlight the text based on the index. For example if you have text at ((index % 2) == 0) it could be yellow, if it at ((index % 2) == 1) it could be blue.
Yes, it would be even better ! This way it may be the best not-overweight smarty editor (as CodeMirror for example)
@adrianhove I understand what you mean but it's very specific isn't ?
@mistic100 Yes. It's not an issue. I am in the process of modifying the code and implementing it myself. I just thought it would be a great feature to add on.
Check my fork. I added highlighting in different colours.
hey folks, I don't have much to work on the plugin but I don't forget you !
I made some changes in code and it works for Smarty now :) It will also support TAB ( \t ) character. I'm sending my code to the author.
Regards, Cezary Nowak polishwebdesign.pl
main issue fixed in 2.0, see demo file
Hello! I would like to use your jQuery plugin: highlightTextarea to highlight Smarty templates but I have some problem...
My regular expression just doesnt work: '{.+}' (It highlight wrong places). I tested it by this tool: http://gskinner.com/RegExr/
I include some smarty code to play with: