How to enter code snippet in HTML or Drupal?



Hi,

 

 I am creating a website and I want to enter code snippet into HTML or Drupal? Do we have any module in Drupal?

 thanks,



http://drupal.org/project/geshifilter is the module to go for.

It highlights as follows:

<blockcode> 
<script type="text/javascript">
    FB
.init("[MY_API_KEY]", "/xd_receiver.htm",
           
{ "ifUserConnected" : fb_login_handler } );
</script>
</blockcode> 

 Basically, it is <code> tags that work.