"Ensuring Your Web Presence Contributes"phpJavascript 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) Software developmentWe do contract software development, using object oriented design and programming where possible.
For dynamic web sites, we are familiar with Javascript, Cascading Style Sheets (CSS), the jQuery library, the Drupal Content Management Framework, PHP and MySQL. Contact us for a free no obligation chat about your software requirements. Offshore development welcomed. Our low hourly rate, the weak NZ$ and our "English as first language culture", means we are an economic and "easy to communicate with" option you should consider. Although India offers incredibly cheap software development, the difficulty in communicating your requirements can be overwhelming. Remember the old saying:- "Of course it is foolish to pay too much, but it may be unwise to pay too little!" 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:
|