From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shuguang Sun Subject: How to use org src functions in other major mode (markdow)? Date: Sun, 29 Dec 2013 16:02:09 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3407c7f380f04eea7beae Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxBK8-0001oB-Ic for emacs-orgmode@gnu.org; Sun, 29 Dec 2013 03:02:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxBK7-0006h9-Qh for emacs-orgmode@gnu.org; Sun, 29 Dec 2013 03:02:12 -0500 Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]:39333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxBK7-0006g1-I1 for emacs-orgmode@gnu.org; Sun, 29 Dec 2013 03:02:11 -0500 Received: by mail-la0-f41.google.com with SMTP id eo20so5120284lab.28 for ; Sun, 29 Dec 2013 00:02:09 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: =?UTF-8?B?5puZ5YWJ?= --001a11c3407c7f380f04eea7beae Content-Type: text/plain; charset=ISO-8859-1 Dear all, Is it possible to use org src functions in other major mode, e.g., markddown-mode? In some extend markdown, source code can be put in to block, for example, r-mode for R script ```r x <- 1:10 ``` Is it possible to highlight the block as org-block "#begion_src R"? How to run org-edit-src-code on such markdown blocks? Best Regards, Shuguang Sun --001a11c3407c7f380f04eea7beae Content-Type: text/html; charset=ISO-8859-1
Dear all,

Is it possible to use org src functions in other major mode, e.g., markddown-mode?

In some extend markdown, source code can be put in to block, for example, r-mode for R script

```r
x <- 1:10
```

Is it possible to highlight the block as org-block "#begion_src R"? How to run org-edit-src-code on such markdown blocks?

Best Regards,
Shuguang Sun
--001a11c3407c7f380f04eea7beae--