A GNU Emacs major mode for editing Zephir code. Provides syntax highlighting, indentation, movement, navigation support and Imenu.
Zephir is a high level programming language that eases the creation and maintainability of extensions for PHP. Zephir extensions are exported to C code that can be compiled and optimized by major C compilers such as gcc/clang/vc++. Functionality is exposed to the PHP language.
- Basic syntax definition
- Indentation of expressions and statements
- Syntax highlighting
- Movement
- Imenu
Known to work with GNU Emacs 25.1 and later. Zephir Mode may work with older versions of Emacs, or with other flavours of Emacs (e.g. XEmacs) but this is not guaranteed. Bug reports for problems related to using Zephir Mode with older versions of Emacs will most like not be addressed. To get this mode with support for GNU Emacs less than 25.1 use previous releases.
The master of all the material is the Git repository at https://github.com/zephir-lang/zephir-mode.
NOTE: The master
branch will always contain the latest unstable version.
If you wish to check older versions or formal, tagged release, please switch
to the relevant tag.
The recommended way is to use, MELPA Stable or MELPA. If either is in your
package-archives
, do:
M-x package-install RET zephir-mode RET
To learn on how to use any other installation methods refer to relevant documentation.
Command (For the M-x prompt.) | Description |
---|---|
zephir-mode | Switches to Zephir Mode. |
zephir-mode-version | Display string describing the version of Zephir Mode. |
To see full list of Zephir related commands use command as follows:
M-x apropos-command RET ^zephir- RET
By default any file that matches the glob *.zep
is automatically opened in
zephir-mode
.
To see and customize all Zephir related options, use command as follows:
M-x customize-group RET zephir RET
Feel free to ask question or make suggestions in our issue tracker.
To see what has changed in recent versions of Zephir Mode see NEWS file.
Zephir Mode is open source software licensed under the GNU General Public Licence version 3. Copyright © 2017-2020 Free Software Foundation, Inc.
In copyright notices where the copyright holder is the Free Software Foundation, Inc, then where a range of years appears, this is an inclusive range that applies to every year in the range. For example: 2005-2008 represents the years 2005, 2006, 2007, and 2008.