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

プログラミング言語ごとのdiff #86

Closed
pandaman64 opened this issue Dec 20, 2020 · 2 comments · Fixed by #104
Closed

プログラミング言語ごとのdiff #86

pandaman64 opened this issue Dec 20, 2020 · 2 comments · Fixed by #104

Comments

@pandaman64
Copy link

prismjsでは各プログラミング言語用のハイライトとdiffのハイライト両方を適用することができるようです.
https://prismjs.com/plugins/diff-highlight/

Zennでこれを利用できるとプログラムの差分の表示が見やすくなって嬉しいです.

@catnose99
Copy link
Contributor

お、これは知らなかったです。確認してみます!

@catnose99 catnose99 transferred this issue from zenn-dev/zenn-community Dec 24, 2020
@catnose99
Copy link
Contributor

The syntax described on PR below doesn't work...
PrismJS/prism#1889

Prism.highlight(code, Prism.languages.diff, 'diff-' + diffLanguage)

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