Skip to content

Commit fd7896e

Browse files
committed
Add description about default syntax highlight in doc
1 parent db2cab7 commit fd7896e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/development/writingzeppelininterpreter.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ There are three locations where you can store your interpreter group, name and o
4848
{ZEPPELIN_INTERPRETER_DIR}/{YOUR_OWN_INTERPRETER_DIR}/interpreter-setting.json
4949
```
5050

51-
Here is an example of `interpreter-setting.json` on your own interpreter.
51+
Here is an example of `interpreter-setting.json` on your own interpreter. Note that if you don't specify editor object, your interpreter will use plain text mode for syntax highlighting.
5252

5353
```json
5454
[
@@ -84,8 +84,8 @@ Finally, Zeppelin uses static initialization with the following:
8484

8585
```
8686
static {
87-
Interpreter.register("MyInterpreterName", MyClassName.class.getName());
88-
}
87+
Interpreter.register("MyInterpreterName", MyClassName.class.getName());
88+
}
8989
```
9090

9191
**Static initialization is deprecated and will be supported until 0.6.0.**
@@ -106,11 +106,11 @@ To check out the list of languages supported, see the `mode-*.js` files under `z
106106
If you want to add a new set of syntax highlighting,
107107

108108
1. Add the `mode-*.js` file to <code>[zeppelin-web/bower.json](https://github.com/apache/zeppelin/blob/master/zeppelin-web/bower.json)</code> ( when built, <code>[zeppelin-web/src/index.html](https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/index.html)</code> will be changed automatically. ).
109-
2. Add `editor` object to `interpreter-setting.json` file. If you want to set your language to java, add:
109+
2. Add `editor` object to `interpreter-setting.json` file. If you want to set your language to `java` for example, add:
110110

111111
```
112112
"editor": {
113-
"language": "java"
113+
"language": "java"
114114
}
115115
```
116116

0 commit comments

Comments
 (0)