Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Fix syntax highlighting for Docker and Yaml #162

Open
nuest opened this issue Jan 17, 2018 · 1 comment
Open

Fix syntax highlighting for Docker and Yaml #162

nuest opened this issue Jan 17, 2018 · 1 comment
Labels

Comments

@nuest
Copy link
Member

nuest commented Jan 17, 2018

prism.js already contains all languages, but the syntax highlighting for Dockerfile and yaml does not work, potentially because of the mime/type provided by the server.

The server gives Content-Type:text/yaml; charset=UTF-8 for erc.yml (client problem):

image

The server gives Content-Type:application/octet-stream for Dockerfile (probably server problem):

image

What is the type needed for Dockerfile?

@nuest nuest added the bug label Jan 17, 2018
@jansule
Copy link
Collaborator

jansule commented Jan 17, 2018

Currently prism.js is only handling .Rmd files properly due to a change of the code highlighting framework. To make the highlighting properly running the o2rDisplayfiles.directive.js has to be edited. More precisely the functions here and here as well as here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants