Adds support for inline code blocks in CKEditor.
Installation
This module requires the core CKEditor module and the CodeTag plugin from CKEditor.com.
- Download the CodeTag plugin from http://ckeditor.com/addon/codeTag
- Place the plugin folder in the root libraries folder (/libraries/codetag).
- Enable CodeTag in the Drupal admin.
- Configure your WYSIWYG toolbar to include the button.
Basic Usage
Drag the CodeTag button into the active toolbar. There is no configuration; the button should appear in your editor after you save the changes.
Note that your filter format must support the use of the code tag under allowed tags as well, if using anything other than Full HTML.
Syntax Highlighting?
If you're looking for syntax highlighting, you may want to use the CodeSnippet module.
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Module categories: Content Editing Experience, Developer Tools
- 270 sites report using this module
- Created by kevinquillen on , updated
- Drupal 10 is here!
This module is obsoleted by core's CKEditor 5 (added in Drupal 9.3.0). Since CKEditor 4 has been deprecated and will be removed in Drupal 10, this module will not be ported.
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Drupal 10 support
Development version: 8.x-1.x-dev updated 22 Sep 2022 at 12:06 UTC