This is an H5P syntax highlighting tool designed for programmers, avid developers, and coding enthusiasts. You'll have a code editor where you can select the programming language and input highlighted and organized code.
How to integrate this library into my environment?
- Ensure that the dependencies of 'CodeHighlighter' are already included in your environment: 'CodeMirror' and 'CodeEditor'. Follow the order, as 'CodeEditor' requires 'CodeMirror' to be already included to function. Here are the compressed files:
- CodeMirror: Clique aqui
- CodeEditor: Clique aqui
- CodeHighlighter: Clique aqui
- After downloading the above files, insert them into your environment in the same previous order.
- Após inserir todas as bibliotecas no seu ambiente, você já poderá criar um conteúdo do tipo ‘CodeHighlighter’
Using the TextEditor component within another h5p content:
- Let's say you want to use the TextEditor within a Column content, which the Interactive Book also uses the Column to create its contents. By default, Column will not show our TextEditor as an option.
- Para isto, basta baixar o arquivo h5p do column em: column e inserir o arquivo compactado no seu ambiente.
Step-by-Step Guide to Compress and Integrate H5P Libraries in Moodle:
This guide provides detailed instructions on how to compress a library for the H5P extension and integrate it into Moodle. Make sure to follow each step carefully to ensure a successful installation.
- Installation of H5P CLI: Use the command to install the H5P CLI globally:
npm install -g h5p
- Navigate to the Library Folder: Access the desired library folder using the command, e.g.:
cd h5p-column
- Compressing the Library into .h5p: Execute the following command to compress the folder into an .h5p file:
h5p pack h5p-column
- Access Moodle: Open Moodle and access the Site Administration section.
- H5P Content Type Management: Navigate to "H5P" and select "Manage H5P Content Types."
- Upload the Compressed Library: In the "Upload H5P Content Types" area, upload the newly created .h5p file.
- Confirmation Message: A success message will be displayed, confirming the successful integration of the library.
Note: Some contents may error out because they have pre-dependencies. If you try to upload this content before uploading its dependencies, an error message will be presented. So upload the pre-dependencies first.
If you have any further questions or need additional assistance, please don't hesitate to ask.