Return-Path: X-Original-To: apmail-zeppelin-commits-archive@minotaur.apache.org Delivered-To: apmail-zeppelin-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 41D0817D80 for ; Mon, 14 Sep 2015 06:12:49 +0000 (UTC) Received: (qmail 19760 invoked by uid 500); 14 Sep 2015 06:12:49 -0000 Delivered-To: apmail-zeppelin-commits-archive@zeppelin.apache.org Received: (qmail 19713 invoked by uid 500); 14 Sep 2015 06:12:49 -0000 Mailing-List: contact commits-help@zeppelin.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zeppelin.incubator.apache.org Delivered-To: mailing list commits@zeppelin.incubator.apache.org Received: (qmail 19693 invoked by uid 99); 14 Sep 2015 06:12:49 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Sep 2015 06:12:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 82A5E180375 for ; Mon, 14 Sep 2015 06:12:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.775 X-Spam-Level: * X-Spam-Status: No, score=1.775 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.006, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tBAFNwmniPXX for ; Mon, 14 Sep 2015 06:12:40 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 6A92620F93 for ; Mon, 14 Sep 2015 06:12:40 +0000 (UTC) Received: (qmail 19270 invoked by uid 99); 14 Sep 2015 06:12:40 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Sep 2015 06:12:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E993CDFE20; Mon, 14 Sep 2015 06:12:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: moon@apache.org To: commits@zeppelin.incubator.apache.org Message-Id: <89d76e8b045f4c5a8b199e02863653be@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-zeppelin git commit: Add documentation on how to add syntax highlighting in the ACE editor Date: Mon, 14 Sep 2015 06:12:39 +0000 (UTC) Repository: incubator-zeppelin Updated Branches: refs/heads/master ae1c06bb1 -> d169284fd Add documentation on how to add syntax highlighting in the ACE editor For a new programming language Author: Felix Cheung Closes #297 from felixcheung/interpreterdoc and squashes the following commits: 8a800e5 [Felix Cheung] improve spacing in doc 8174d07 [Felix Cheung] Add doc on how to add syntax highlighting in the ACE editor Project: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/commit/d169284f Tree: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/tree/d169284f Diff: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/diff/d169284f Branch: refs/heads/master Commit: d169284fd08dcd8259d6173c2004e9630deefebb Parents: ae1c06b Author: Felix Cheung Authored: Thu Sep 10 16:47:29 2015 -0700 Committer: Lee moon soo Committed: Mon Sep 14 15:12:30 2015 +0900 ---------------------------------------------------------------------- docs/docs/manual/interpreters.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/blob/d169284f/docs/docs/manual/interpreters.md ---------------------------------------------------------------------- diff --git a/docs/docs/manual/interpreters.md b/docs/docs/manual/interpreters.md index ab9fdf4..c74f755 100644 --- a/docs/docs/manual/interpreters.md +++ b/docs/docs/manual/interpreters.md @@ -36,3 +36,16 @@ Technically, Zeppelin interpreters from the same group are running in the same J Interpreters belong to a single group a registered together and all of their properties are listed in the interpreter setting. + +### Programming langages for interpreter + +If the interpreter uses a specific programming language (like Scala, Python, SQL), it is generally a good idea to add syntax highlighting support for that to the notebook paragraph editor. + +To check out the list of languages supported, see the mode-*.js files under zeppelin-web/bower_components/ace-builds/src-noconflict or from github https://github.com/ajaxorg/ace-builds/tree/master/src-noconflict + +To add a new set of syntax highlighting, +1. add the mode-*.js file to zeppelin-web/bower.json (when built, zeppelin-web/src/index.html will be changed automatically) +2. add to the list of `editorMode` in zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js - it follows the pattern 'ace/mode/x' where x is the name +3. add to the code that checks for `%` prefix and calls `session.setMode(editorMode.x)` in `setParagraphMode` in zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js + +