Skip to content

Conversation

@bramz
Copy link
Contributor

@bramz bramz commented Mar 5, 2019

Introduction

Added a method to handle language checking for syntax highlighting.

Review

  • Tested

  • Ready to Review
  • Ready to Merge

@bramz bramz added the enhancement New feature or request label Mar 5, 2019
@bramz bramz requested review from RaasAhsan, Tiksi and ncatelli March 5, 2019 03:58
}
function codeType(){
if(window.location.hash){
var lang = window.location.hash.substr(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without a listener to call this, adding the #language won't change the language highlighting, look at how changestyle works:

window.addEventListener("hashchange", changeStyle, false);
to call the function when it changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants