소스 검색

Update README.md

Add language to code blocks for highlighting
master
Andrew Senetar 6 년 전
부모
커밋
03dbc1f963
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5
    5
      README.md

+ 5
- 5
README.md 파일 보기

@@ -5,21 +5,21 @@ PrismHighlight
5 5
 Installation
6 6
 -------------
7 7
 To install the extension clone the source into your extensions directory:
8
-~~~
8
+~~~bash
9 9
 cd /path/to/wiki/extensions
10 10
 git clone https://github.com/arsenetar/PrismHighlight.git 
11 11
 ~~~
12 12
 Alternatively you may download the source via [zip](https://github.com/arsenetar/PrismHighlight/archive/master.zip).
13 13
 
14 14
 To activate the extension open your `LocalSettings.php` file and add the following:
15
-~~~
15
+~~~php
16 16
 require_once("$IP/extensions/PrismHighlight/PrismHighlight.php");
17 17
 ~~~
18 18
 
19 19
 Configuration
20 20
 --------------
21 21
 The following are the configuration options for the `Localsettings.php` file ( defaults shown ):
22
-~~~
22
+~~~php
23 23
 /**
24 24
  * Theme to use
25 25
  * options: dark, funky, okaidia, tomoorrow, twilight, false ( default )
@@ -61,7 +61,7 @@ $wgPrismHighlightLanguages = array(
61 61
 Use
62 62
 ----
63 63
 To use the syntax highlighter in wiki markup create the following:
64
-~~~
64
+~~~html
65 65
 <source>
66 66
  //[...]
67 67
 </source>
@@ -76,7 +76,7 @@ Now the following parameters may be passed to the `<source>` tag:
76 76
 - `line-numbers` - used as a flag to specify line numbers should be used
77 77
 
78 78
 ### Example
79
-~~~
79
+~~~html
80 80
 <source lang=php data-start=29 line-numbers>
81 81
     foreach( $args as $key => $value ){
82 82
         switch ($key) {

Loading…
취소
저장