Things like Alex Gorbatchev's syntax highlighter or other externally-hosted scripts (e.g. Google code, github etc.) I may want to be available in all my posts.
- Include in the post body
- In a template gadget
- In the template HTML
Post bodyAs simple as chucking the
<script>tag in the HTML view of the post. Might be good for a one-off/single-use script, but I've found that it can sometimes affect the white space of the post.
Also if the script is used regularly it would be a pain doing this for each post.
Template HTMLBy editing the HTML for the template, the
<script>tags can be placed right on top of the
Edit the template by going to Template -> Edit HTML. Read the warning and click 'Proceed'.
Searching for the string
</body>tag, so it is just a matter of including additional
<script>tags in that area.
|Editing the template HTML|