"Ensuring Your Web Presence Contributes"drupalJavascript code filter for Drupal![]()
Posted by admin on Thu 26 Jun 2008
Here is an explanation of how I wrote a Drupal5.n module to filter javascript code so that it displays syntax highlighted. To illustrate what it does:- /*If the code is just a single line it will display without the background div:
The filter system within Drupal is intended to make data entry into the CMS easy and safe. URL's can become clickable and malicious HTML (and rude words) can be stripped out. This js_filter module, based on the contributed codefilter module by John Wilkins, will syntax highlight Javascript code. There are already ways to do this within Drupal, the geshifilter module which uses the third-party GeSHi PHP library will syntax highlight many languages and there is also a jQuery plugin, jquery-chili-js which uses "recipes" for several languages. js_filter has no software dependencies, it is purely PHP module code. Read more . . . Category(s) Drupal consultingWe are familiar with the Drupal CMS (Content Management System) and offer competitive Drupal developer consultancy. Drupal is an extremely flexible CMS, that we can quickly tailor to your requirements. We configure the site, enable and configure approriate modules and modify themeing to suit. Because it is such a flexible system, it often seems complicated when first encountered. There is a learning curve for newcomers. With our years of experience, we can efficiently deploy a Drupal site giving you a "state of the art" CMS. Additionally the Drupal open source project offers -
We are active on the Drupal forums, assisting where we can. Content Management SystemsManage your own content.We use and recommend the free open source Content Management System (CMS) called Drupal. It is written in the PHP programming lanuage and uses the MySQL database. Drupal is more than a CMS, it is a framework where specific functionality may be added by including "modules". We will develop modules for special features you may require. Usually, we configure this CMS, design the theme, set up search engine optimisation factors, set up content and images to suit you, test, upload, and train you in the use of this system. We would also add Privacy Policy, Terms of Use and Disclaimer pages if required. We will explain how you should solicit links for best search engine ranking. This will provide you with these benefits:
|