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

Set language in code blocks #380

Closed
ulrikstrid opened this issue Sep 8, 2019 · 4 comments
Closed

Set language in code blocks #380

ulrikstrid opened this issue Sep 8, 2019 · 4 comments
Labels

Comments

@ulrikstrid
Copy link
Contributor

It would be nice if we could tell odoc that a particular code block is either OCaml or Reason. If there is a is a integrated mode where we can switch syntax on the future it would be nice to provide examples in both languages and be able to switch between them.

@aantron
Copy link
Contributor

aantron commented Sep 13, 2019

It seems we need to extend the ocamldoc language for this. If so, we should also begin documenting odoc's language extensions.

@trefis
Copy link
Contributor

trefis commented Sep 13, 2019

The previous version of odoc/octavius had documentation for the new syntax: https://ocaml-doc.github.io/octavius/syntax.html

I don't know if there have been much changes since, but you can probably start from there (here is the mld).

@dbuenzli
Copy link
Contributor

dbuenzli commented Oct 9, 2019

Also related to #303

@github-actions
Copy link

github-actions bot commented May 1, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label May 1, 2020
@github-actions github-actions bot closed this as completed May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants