Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add supported syntax highlighting formats #12

Open
rkratky opened this issue Nov 8, 2017 · 2 comments
Open

Add supported syntax highlighting formats #12

rkratky opened this issue Nov 8, 2017 · 2 comments

Comments

@rkratky
Copy link

rkratky commented Nov 8, 2017

The 'code block' element should link to a list of supported languages.

@bergerhoffer
Copy link
Contributor

We need to make sure that the languages we list are supported by ccutil/the portal. Early on, we attempted to use some languages that weren't supported on the portal (at least back then).

The languages we successfully use on EAP are java, xml, sql, javascript, bash, and html. I'm sure there are plenty of others supported - we may want to check w/ the tooling team.

Also note that we had decided on EAP to not use "bash" (or any language) when showing terminal commands. This is because we prefix the command with "$", but if it is a root command, we use "#". With "#" and bash highlighting, it will get incorrectly highlighted as a comment. Maybe there is a better option that we were just unaware of though.

@LightGuard
Copy link

Asciidoctor supports highlight.js. I'm not sure what the portal supports, but would honestly be surprised if they couldn't support highlight.js.

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

No branches or pull requests

3 participants