Title: not outputting script tags
Last modified: August 21, 2016

---

# not outputting script tags

 *  Resolved [James Revillini](https://wordpress.org/support/users/jrevillini/)
 * (@jrevillini)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/not-outputting-script-tags/)
 * just installed latest CJT. i’ve created a JS block and assigned it to a page.
   it does load, but it does not wrap the script in script tags. if i manually add
   script tags, it works, however the editor is throwing errors because it thinks
   they are not necessary.
 * [https://wordpress.org/plugins/css-javascript-toolbox/](https://wordpress.org/plugins/css-javascript-toolbox/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Code Machine](https://wordpress.org/support/users/xpointer/)
 * (@xpointer)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/not-outputting-script-tags/#post-4594431)
 * This is how the Plugin works.
 * However what did you said makes a lot of sense! Here is how it works:
 * There is an icon left to the Block Save button for changing the Editor Highlight
   and Error check mode. There’re 4 languages (CSS, HTML, PHP and JS) on there. 
   So based on that selected language the error check would display the errors. 
   In your case it might be set to default CSS while you write <Scrip> tag,<script
   tag required the editor to be set to HTML.
 * CJT doesn’t automatically output the <script> tag, we allow CJT block to have
   mixed code as its really required when you’ve HTML, CSS and Javascript code you
   want to involve with the request without creating block for everyone.
 * Currently we’re working on solving that issues on the PRO edition. PRO edition
   will solve tyhat issue in the next versions as it will allow the single block
   to have multiple code files. Also the next version that we’ll release after a
   few days will have an autocomplete extension with much Snippets of code like 
   automatci inserting of <script> tags and may others.
 * You can checkout the CJT web site for more details.
    [http://css-javascript-toolbox.com/](http://css-javascript-toolbox.com/)
 *  Thread Starter [James Revillini](https://wordpress.org/support/users/jrevillini/)
 * (@jrevillini)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/not-outputting-script-tags/#post-4594559)
 * I think I understand all that you’ve said. My main thing is that I get a little
   red “X” next to the script tags – it makes it look like i’ve done something wrong,
   but you’re saying I did it right. I’m in JS block mode, so my only recommendation
   is to not flag the <script> tags when working in a JS block. 🙂
 * Thanks! I really appreciate your work on this plugin.
 *  [Code Machine](https://wordpress.org/support/users/xpointer/)
 * (@xpointer)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/not-outputting-script-tags/#post-4594565)
 * You got a half of what I’ve said.
 * Simply <script> tag is not a Javascript keyword. Its HTML keyword! What you wrote
   between the <script></script> tags is Javascript.
 * So in another word: <script> tag is an HTML section for writing Javascript.
 * So you’ve to select HTML Language
 * Hope that is cleared.
 * Thank you for apprewciating the Plugi. We really doing much efforts on there 
   and there’re many features in the pipeline as well.
 * BTW: You can show your appreciating by give us review. Words are great however
   review is good for keeping on :).
 * Regards,
    AHMeD

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘not outputting script tags’ is closed to new replies.

 * ![](https://ps.w.org/css-javascript-toolbox/assets/icon-256x256.gif?rev=3132209)
 * [CSS & JavaScript Toolbox](https://wordpress.org/plugins/css-javascript-toolbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/css-javascript-toolbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/css-javascript-toolbox/)
 * [Active Topics](https://wordpress.org/support/plugin/css-javascript-toolbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/css-javascript-toolbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/css-javascript-toolbox/reviews/)

## Tags

 * [js](https://wordpress.org/support/topic-tag/js/)

 * 3 replies
 * 2 participants
 * Last reply from: [Code Machine](https://wordpress.org/support/users/xpointer/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/not-outputting-script-tags/#post-4594565)
 * Status: resolved