File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 9
9
< script src ="/s/pasteclick.js "> </ script >
10
10
< style > a {color : white;} </ style >
11
11
</ head >
12
- < body class ='hljs ' id ="body " onload ="initPaste(); "> < pre id ="code "> ################################################################################
12
+ < body class ='hljs ' id ="body " onload ="initPaste(); "> < pre id ="code " class ="codeType(); ">
13
+ ################################################################################
13
14
###### ######
14
15
### ###
15
16
# _ _ _ _ #
Original file line number Diff line number Diff line change @@ -12,8 +12,14 @@ function getPastePre(){
12
12
function highlightPre ( pastePre ) {
13
13
hljs . highlightBlock ( document . body ) ;
14
14
hljs . highlightBlock ( pastePre ) ;
15
- }
15
+ }
16
16
function initPaste ( ) {
17
17
inPastePre = getPastePre ( ) ;
18
18
highlightPre ( inPastePre ) ;
19
19
}
20
+ function codeType ( ) {
21
+ if ( window . location . hash ) {
22
+ var lang = window . location . hash . substr ( 1 ) ;
23
+ }
24
+ return lang ;
25
+ }
You can’t perform that action at this time.
0 commit comments