Components | Code
The "Code" compost is specially designed for training content related to programming languages (HTML, JavaScript, Python....). This component allows you to add programming code from different languages without interfering with the proper functioning of the unit.
The component automatically recognizes the following languages:
- Apache
- Css
- HTTP
- Javascript
- Objective-C
- Python
- Bash
- CoffeeScript
- Ini, TOML
- Makefile
- Php
- Ruby
- C#
- Diff
- Json
- Markdown
- Perl
- Sql
- C
- HTML, XML
- Java
- Nginx
- Properties
- Shell Session
You will find this component in the "Text" component group.
This component has no properties. All we have to do is write inside the programming code that we want to show students. It is recommended that you compose the code or pre-pass it through a txt, and not copy and paste it from other sources (Word or others) because the text styles that the source text has (font, color, etc.) will be applied.
It should be noted that in the editing area you do not see any style for the built-in code. You need to preview the course to really see what this component looks like.
View in edit mode:
Preview mode view