6

I want to write some short numerical programs in chapel. Can somebody just tell an IDE, or text editor which supports code highlighting for chapel (chapel-aware), is there an elisp-file for emacs? I don't prefer vim, even if a script for vim exists.

I tried searching, but I couldn't find anything. I neither know emacs-lisp nor am completely aware of chapel's syntax to configure it to make this chapel-aware.

rayryeng
  • 102,964
  • 22
  • 184
  • 193
fedvasu
  • 1,232
  • 3
  • 18
  • 38

3 Answers3

6

the elisp files and .vimrc files ship along with chapel tar.gz file , so after extracting the tar.gz file in a folder chapel-version/highlight/vim or chapel-version/highlight/emacs there the vimrc or elisp files are present and in the README , instructions are also given how to add to init files ~/.emacs or ~/.vim.

ben-albrecht
  • 1,785
  • 10
  • 23
fedvasu
  • 1,232
  • 3
  • 18
  • 38
  • 2
    If you're not working out of the release tarball, you can find the the files in the git repository: [vim plugin](https://github.com/chapel-lang/chapel/tree/master/highlight/vim), [emacs mode](https://github.com/chapel-lang/chapel/tree/master/highlight/emacs) – ben-albrecht Aug 31 '16 at 23:47
  • 3
    Adding on to fedvasu's answer: Note that as of Chapel 1.13, the etc directory has been renamed to highlight; so the current paths are `$CHPL_HOME/highlight/emacs` or `$CHPL_HOME/highlight/vim`. – mppf Jul 22 '16 at 13:29
4

I have just come across a plugin for the Atom Editor that does Chapel Highlighting

Brian Dolan
  • 3,086
  • 2
  • 24
  • 35
  • 2
    ( Btw, a sad point is, that this has been advised exactly a year ago, but "hyper-activistic" community-censors have deleted this answer and left everyone interested in the [Chapel] to have to re-search the already solved answer. For details >>>https://stackoverflow.com/a/39195945 ) – user3666197 Aug 21 '17 at 08:46
3

There is an Emacs mode for Chapel at MELPA. So if you are using an Emacs with package management you can just install chapel-mode.

https://melpa.org/#/chapel-mode

Russel Winder
  • 3,436
  • 1
  • 17
  • 12