Added highlight for XML formatter
This commit is contained in:
		| @@ -4,7 +4,12 @@ | |||||||
|     <head> |     <head> | ||||||
|         <!-- <link rel="stylesheet" href="styles.css"> --> |         <!-- <link rel="stylesheet" href="styles.css"> --> | ||||||
|         <link rel="stylesheet" href="../assets/css/tools/r11form.css"> |         <link rel="stylesheet" href="../assets/css/tools/r11form.css"> | ||||||
|  |         <link rel="stylesheet" href="../assets/css/highlight.css"> | ||||||
|  |         <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script> | ||||||
|         <script src="../assets/scripts/tools/scripts.js"></script> |         <script src="../assets/scripts/tools/scripts.js"></script> | ||||||
|  |         <script src="../assets/scripts/tools/highlight.js"></script> | ||||||
|  |         <script>hljs.highlightAll();</script> | ||||||
|  |  | ||||||
|         <meta name="viewport" content="width=device-width, initial-scale=1.0"> |         <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||||
|         <meta charset="utf-8" /> |         <meta charset="utf-8" /> | ||||||
|     </head> |     </head> | ||||||
| @@ -34,10 +39,7 @@ | |||||||
|  |  | ||||||
|                     </div> |                     </div> | ||||||
|  |  | ||||||
|                     <textarea id="xmlArea" name="xmlArea" rows="15" |                     <pre><code class="language-xml bordered-field textarea-700" id="xmlArea" contenteditable="True"></code></pre> | ||||||
|                         class="textarea-700 bordered-field vertically-resizeable max-width" |  | ||||||
|                         onblur="setDefaultContent(this, 'Insert XML here');" |  | ||||||
|                         onfocus="clearDefaultContent(this, 'Insert XML here');"></textarea> |  | ||||||
|                     <br><br> |                     <br><br> | ||||||
|                     <button id="prettifyButton" class="max-width block-label action-button active" |                     <button id="prettifyButton" class="max-width block-label action-button active" | ||||||
|                         onclick="performFormatRequest('prettify', true, 'xmlArea', 'xmlArea')">Prettify XML</button> |                         onclick="performFormatRequest('prettify', true, 'xmlArea', 'xmlArea')">Prettify XML</button> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user