Add this to your .htaccess:
Or, if you have administrator rights, you could set it globally by editing httpd.conf and adding:
2. Demo Example
3. Post Update: easier implementation with jQuery Library
4. Demo with jQuery
5. References & Further Readings
The strategy is to place the controlled element on a hidden layer (
div), and then change the
display attribute to make it show up.
IF YOU ARE ON WORDPRESS.COM:
The trick is to use the WordPress [ sourcecode] tag, as documented at http://en.support.wordpress.com/code/posting-source-code/
Note: You have to enclose the [ sourcecode] shortcut tag in square – not pointy – brackets.
Here is a snippets of C code.
[sourcecode language="c" wraplines="true" collapse="false"]
your code goes here
The default for wraplines is true, which causes long lines to be wrapped. That isn’t appropriate for Python, so specify Continue reading