최근 검색


최근 검색 없음

Michael Krutoyarskiy's Avatar

Michael Krutoyarskiy

가입한 날짜: 2021년 10월 22일

·

마지막 활동: 2021년 10월 22일

팔로잉

0

팔로워

0

총 활동 수

3

투표 수

0

가입 플랜

1

활동 개요

님의 최근 활동 Michael Krutoyarskiy

Michael Krutoyarskiy님이 에 댓글을 입력함

커뮤니티 댓글 Feedback - Help Center (Guide)

Thank you, Ryan.

'Standard script' - I meant something which handles all the

 tags in an article and adds the area with border and grey background. It works after the custom script I've applied. And when my script makes the background dark, the default script after it makes it grey which is not good if I want to use a dark style with white font colour for the code snippets.

댓글 보기 · 2019년 1월 01일에 게시됨 · Michael Krutoyarskiy

0

팔로워

0

투표 수

0

댓글


Michael Krutoyarskiy님이 에 댓글을 입력함

커뮤니티 댓글 Feedback - Help Center (Guide)

I've managed to make https://highlightjs.org/ work for me with some custom setup.

It has kind of a conflict with a standard zendesk script which makes it not possible to use dark themes, but still a decent solution.

Here is the result:

To use it you should:

1. Add links to the css and the script to your document_head.hbs

href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.13.1/build/styles/atom-one-light.min.css">

*Take different version/style from here https://highlightjs.org/download/ if you need

2. Add a script which will proccess all the 'pre' blocks to the script.js

$('pre').each(function(i, block) {
hljs.highlightBlock(block);
});

3. After it all your code snippets (like:

 Some code 
) will look much better.

If I will manage to disable the standard script it will make everything much easier, but unfortunately, I can't spend more time on it right now...

 

 

 

댓글 보기 · 2018년 12월 27일에 게시됨 · Michael Krutoyarskiy

0

팔로워

0

투표 수

0

댓글