Is it possible to color the user entering the code (inside the text box) using jquery.
Specific texts, such as <h1> , <b> , etc., should be colored or highlighted.
<h1>
<b>
this helps to distinguish opening closing tags.
Please, help
Not.Text blocks in <textarea> elements cannot be formatted.
<textarea>
You need to use the ContentEditable element.Try CodeMirror .
jQuery will be able to edit styles of elements that can be styled using CSS. Therefore, it is not possible to edit colors inside the input element.
you can check
Syntaxhighlighter
http://alexgorbatchev.com/wiki/SyntaxHighlighter
Source: https://habr.com/ru/post/1313091/More articles:How to get each index of a virtual function, how does the compiler do it? - c ++Is it possible to override the Hibernate operator "like" in HQL? - hibernateDifferentiation between native and reference objects in code? - designIs it possible to distribute the MPI program (C ++) over the Internet, and not in a local cluster? - c ++how to save user password in device memory - androidfirst child does not select expected elements - jqueryMagento: add the product twice to the cart, with different attributes! - attributesCan mod_rewrite do the math? - regexXElement.Load ("~ / App_Data / file.xml") Could not find part of the path - c #Moles without Pex? - mockingAll Articles