extemporelang / extemporelang.github.io

Extempore docs website
MIT License
71 stars 26 forks source link

Feature/add syntax highlight #19

Closed cyblue9 closed 5 years ago

cyblue9 commented 5 years ago

Hi, @benswift!

Completed to add syntax highlight for xtlang of this document!!! 😊 (https://github.com/extemporelang/highlight.js/issues/1)

After finished to creat highlightjs-xtlang repo, I tried to migrate it to here. But it did not work. Because, there are problem in hilight.js.(https://github.com/highlightjs/highlight.js/pull/1888) Apparently highlightjs-xtlang repo does not seem to work ...😥

So, I copied highlight.js source and highlightjs-xtlang source to /js/hightlight/.

Images:

2018-11-27 22 42 24 2018-11-28 0 03 03

Explanation of change:

I confirmed to working in all page of document by sight, all were OK!😄

If you do not like highlight color, please change freedom! (/js/highlight/styles/xtlang.css)

Please review! (Sorry that the commit size got bigger.)

cyblue9 commented 5 years ago

@benswift Sorry, this PR had conflicts. Fixed it.

Please review!

benswift commented 5 years ago

Sure, will have a look asap. Thanks for all your hard work!

benswift commented 5 years ago

Seems to work well. Woohoo!

cyblue9 commented 5 years ago

Thank you to merge!

I think that I can write it a bit more compactly, so I will refactor them after a while.