Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
191
rated 0 times [  194] [ 3]  / answers: 1 / hits: 27969  / 12 Years ago, wed, august 1, 2012, 12:00:00

i have found this project



http://code.google.com/p/google-code-prettify/



i've tested it and it works fine



but it only works with (<pre>)



i want use it with (<textarea>)



but if i replace <pre> to <textarea>



it's not working !!



So how to use this script with textarea?


More From » javascript

 Answers
47

Have you tried codemirror?



It does what you want: prettify code in textarea.


[#83913] Tuesday, July 31, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jonrened

Total Points: 627
Total Questions: 114
Total Answers: 99

Location: Zimbabwe
Member since Thu, Jul 21, 2022
2 Years ago
jonrened questions
Mon, Nov 2, 20, 00:00, 4 Years ago
Tue, May 19, 20, 00:00, 4 Years ago
Tue, Jan 21, 20, 00:00, 4 Years ago
Thu, Nov 7, 19, 00:00, 5 Years ago
;