Moodle Plugins directory: Source code Pro: Versions: 1.0.2 | Moodle.org

Source code Pro
Source code Pro 1.0.2
Source Code Pro for tiny editor
A plugin for the Moodle TinyMCE editor which replaces the basic source code editor shipped by TinyMCE6. This plugin leverages codeMirror version 6 to provide syntax highlight, autocompletion, block fold, etc.
This plugin does not include any configuration settings. The installation is straightforward: simply go to Site Administration area (Plugins → Install plugins → Install plugin from ZIP file).
Once the plugin is installed, the items named "Source Code" in the menu, will be replaced by "Source Code Pro". Also a button will be added in the first position of the toolbar.
The source code opens in a modal dialogue that can be expanded to fit the entire window. It accepts two themes (light and dark). You will also find a button to toggle line wrapping.
The capability 'tiny/codepro:viewplugin' allows to set the plugin visibility for any role.
Icon by Fontawesome 6.4.
Generate AMD modules
In order to generate the binaries in /amd/build
from source code in /amd/src
, you need to execute the command
npx grunt amd
Generate codemirror dependency
Please refer to the documentation in libs/codemirror.
Version information
- Version build number
- 2024012001
- Version release name
- 1.0.2
- Maturity
- Stabilna inačica
- MD5 Sum
- 6f4f2e9eaccc12e72fe23068e6a117f0
- Supported software
- Moodle 4.1, Moodle 4.2
- The more recent release 2.1.2 (2025080701) exists for Moodle 4.1
- The more recent release 2.1.2 (2025080701) exists for Moodle 4.2
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
- VCS branch
- master
Default installation instructions for plugins of the type TinyMCE
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder (eg "myeditor") in the "lib/editor/tiny/plugins" subdirectory.
- Visit http://yoursite.com/admin to finish the installation