This module allows users to post PHP and HTML code snippets directly in content without needing to manually escape special characters. It also automatically applies syntax highlighting to PHP code.
This module provides a simple text format (input filter) that handles <?php ?> and <code></code> tags so that users can post code without having to worry about manually escaping < and > characters with < and >
For PHP code, this module also adds syntax highlighting. For example:
print "Hello, world!";
This module is used on drupal.org.
This module has a handbook page; you can refer to it for more detailed documentation.
Ask your assistant about Code Filter
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.0.1 | Stable | 8–11 | Oct 7, 2024 | ||
| 2.0.0 | Stable | 8–11 | May 24, 2024 | ||
| 2.0.0-alpha3 | Pre-release | 8–10 | Aug 8, 2023 | ||
| 2.0.0-alpha2 | Pre-release | 8–10 | May 23, 2023 | ||
| 2.0.0-alpha1 | Pre-release | 8–10 | Mar 16, 2023 | ||
| 2.0.x-dev | Dev | 8–11 | PHP >=8.1.6 | Mar 16, 2023 |