插件过滤器

CSS inject

filter_cssinjectManuel Menzinger

  • Moodle 1.9–5.1
  • 更新 2025-10-24

This simple filter allows users to add css to their content, without switching to code-view. It also provides pre-made css-classes to visually enhance basic text areas.
CSS Inject
This simple filter allows users to add css to their content, without switching to code-view. It also provides pre-made css-classes to visually enhance basic text areas.
Usage examples
Use [!box: … !] to directly apply a bordered css-style around the content. There are several classes that can be used. Classes of a different category can also be combined (e.g.: [!box: info purple!] )
To limit the box to just a part of the content, the tags [!box-start: … !] and [!box-end!] can be used.
[!box: info red!]
[!box-start: read!] This is important to read! [!box-end!]
Currently available classes:
// pre-made classes
info
read
warning
stop
ok
wrong
// icons
icon_lamp
icon_book
icon_warning

返回插件目录