Syntax Highlight > php

본문 바로가기
사이트 내 전체검색

php

Syntax Highlight

페이지 정보

작성자 서방님 댓글 0건 조회 263회 작성일 18-08-17 12:54

본문

<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/github.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>
function sh(id) {
 var $id = $("#" + id);
 if ($id.length > 0) {
 var html = $id.html();
 html = html.split("[code]").join("<pre><code>");
 html = html.split("[/code]").join("</pre></code>");

 $id.html(html);
 $id.find("pre>code").each(function() {
 var text = $.trim($(this).text());
 $(this).text(text);
 });
 }
}

$(function() { sh("bo_v_con"); });
</script>

댓글목록

등록된 댓글이 없습니다.

Total 614건 10 페이지
게시물 검색

회원로그인

접속자집계

오늘
21
어제
190
최대
1,347
전체
167,429
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.