Skip to content

Update the CSS template for changing the code-block layout #2348

Answered by kristosh
kristosh asked this question in Q&A
Discussion options

You must be logged in to vote

After some extra investigation, I figured out that the file responsible for the update of the code is the assets\js\distillpub\template.v2.js which is a rather big document. I have just commented out completely. The site looks weird but the codeblock has the desired css. I guess there is part of this code that blocks that CSS.

The js function responsible for that is the highlightElement: function(element, async, callback) which after commenting it out, my codeblock works smoothly with the submline style. Not sure quite what the implications are if I fully comment on this function in this .js though :)!

Replies: 7 comments 22 replies

Comment options

You must be logged in to vote
9 replies
@george-gca
Comment options

@kristosh
Comment options

@george-gca
Comment options

@kristosh
Comment options

@george-gca
Comment options

Comment options

You must be logged in to vote
4 replies
@kristosh
Comment options

@george-gca
Comment options

@kristosh
Comment options

@george-gca
Comment options

Comment options

You must be logged in to vote
6 replies
@kristosh
Comment options

@george-gca
Comment options

@kristosh
Comment options

@kristosh
Comment options

@george-gca
Comment options

Comment options

You must be logged in to vote
3 replies
@george-gca
Comment options

@kristosh
Comment options

@kristosh
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kristosh
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants