미디어위키 SyntaxHighlight GeSHi 설치

미디어위키 SyntaxHighlight GeSHi 설치
Git으로 SyntaxHighlight GeSHi 설치

1 설치[ | ]

[root@zetawiki extensions]# git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/SyntaxHighlight_GeSHi.git
Initialized empty Git repository in /var/www/html/w/extensions/SyntaxHighlight_GeSHi/.git/
remote: Counting objects: 1570, done
remote: Finding sources: 100% (1570/1570)
remote: Getting sizes: 100% (244/244)
remote: Compressing objects: 100% (244/244)
remote: Total 1570 (delta 1014), reused 1531 (delta 978)
Receiving objects: 100% (1570/1570), 1.28 MiB | 272 KiB/s, done.
Resolving deltas: 100% (1016/1016), done.
  • 확인
[root@zetawiki extensions]# ll SyntaxHighlight_GeSHi
total 96
drwxr-xr-x 5 root root  4096 Sep 13 12:50 geshi
-rw-r--r-- 1 root root  2288 Sep 13 12:50 README
-rw-r--r-- 1 root root 12071 Sep 13 12:50 SyntaxHighlight_GeSHi.class.php
-rw-r--r-- 1 root root 67955 Sep 13 12:50 SyntaxHighlight_GeSHi.i18n.php
-rw-r--r-- 1 root root   362 Sep 13 12:50 SyntaxHighlight_GeSHi.local.php
-rw-r--r-- 1 root root  2837 Sep 13 12:50 SyntaxHighlight_GeSHi.php

2 설정[ | ]

LocalSettings.php를 열어 맨 아래에 다음 내용을 추가

require_once( "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php" );

3 확인[ | ]

자신의 미디어위키 웹사이트에서 Special:Version으로 이동하여 확장기능 설치 확인.

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}