Zenika-Training / zenika-formation-framework

Tools to build and present our training material
8 stars 25 forks source link

chore: add prism languages (yaml, ini ans shell-session) #245

Closed zigarn closed 5 years ago

zigarn commented 5 years ago

Because it's (a bit) nicer when it's highlighted. Now I understand why it wasn't nice in Kubernetes trainings.

Is there a way to avoid the need to explicitly add all the necessary languages?

zigarn commented 5 years ago

Is there a way to avoid the need to explicitly add all the necessary languages?

Looks like #243 may be an option to set languages support in trainings.

ebriand commented 5 years ago

How can I test this evolution? 🤔

zigarn commented 5 years ago

How can I test this evolution? 🤔

git clone --branch prism-yaml git@github.com:Zenika/zenika-formation-framework.git
cd zenika-formation-framework
docker build --tag zenika/formation-framework:v3 .
cd /path/to/formation-kubernetes-user
./run.sh dev

And you should now see syntax highlighting on YAML snippets.

ebriand commented 5 years ago

Thanks for this PR 👍 To answer your question, there is an autoloader plugin to prism to load languages when necessary. Worth to try in another PR 😄