대문 최근에 바뀐 글 새소식 찾기 하우투 문제 제안

(NxhtmlMode 에서 재전송됨)

nXhtml


Current version is 2.08 - please upgrade if you have an older version!


http://ourcomments.org/Emacs/nXhtml/doc/img/use-nXhtml-trans2.png

This page should really be named nXhtml since it is about the whole nXhtml package. nxhtml-mode is just a part of that package.

To download nXhtml go to nXhtml homepage. It is also included in EmacsW32.
You can also download nXhtml directly from the repository (without bzr). To do that download the file web-vcs.el and eval it (i.e. open the file and do M-x eval-buffer). Then do M-x web-vcs-nxhtml. This can be used both for initial download and updating.
With the web download I now recommend downloading part by part if you like it. I have the impression that many wanted a smaller download than the whole of nXhtml. Here you have it!
To report a bug go to https://bugs.launchpad.net/nxhtml.

Newest features (see changelog):

  • A new library bibhlp.el to make it easy to handle bibliographic references in for example org-mode. Only in the repository yet. (Yes, it has nothing to do with web-development and it will move on later I hope… ;-)
  • Web download directly from Emacs (without bzr, instead using web-vcs.el, see above)
  • Support for the new JavaScriptMode mode in CVS Emacs (called js-mode, formerly known as Espresso mode).
  • Chunks in chunks
  • Inline images for html, org-mode, css-mode etc.
  • Preview as you type in Firefox (but rather slow - additions are welcome), find out where an element is in Firefox
  • You can now use hi-lock with Mumamo multi major modes.
  • Mumamo region chunks, which is temporarily chunks you add yourself with any major mode. You just hilight the region and decide what major mode it should have.
  • Fetch and start using the latest development version of ECB right now!

Description

nXhtml is a package that may help for web development, but it also contains a lot of other things. For an overview see nXhtml home page. You may also find the tutorials useful.

One of the main parts is the major mode nxhtml-mode for editing XHTML files (based on NxmlMode). This gives XHTML completion of tags and attributes also in for example php files (even if they do not contain XML + DTD specifications).

Another main part handles multiple major modes (using MuMaMo). It defines multi major modes, often with names like html-mumamo, nxhtml-mumamo, eruby-html-mumamo, django-html-mumamo, genshi-nxhtml-mumamo, smarty-html-mumamo etc. Those modes handle inlined style sheets and javascript, php, jsp etc, which are interleaved with the HTML.

There are a lot of other features like simple search and replace in directory trees, simple file upload, etc. The only way to find out is to download nXhtml and try.

Some images showing a bit of the nXhtml functionality (try it out if you wonder more):

http://ourcomments.org/Emacs/nXhtml/doc/img/php-in-nxhtml-2.png http://ourcomments.org/Emacs/nXhtml/doc/img/links-appmenu.png http://ourcomments.org/Emacs/nXhtml/doc/img/region-selected-completion.png http://ourcomments.org/Emacs/nXhtml/doc/img/nxml-where.png http://ourcomments.org/Emacs/nXhtml/doc/img/foldit-closed.png http://ourcomments.org/Emacs/nXhtml/doc/img/foldit-temp-opened.png

Quick Start

Installation is easy, just unzip the archive and (just as README.txt says) add one line to your .emacs:

  (load "YOUR-PATH-TO/nxhtml/autostart")

After this nXhtml is ready for use. However for a little more and where to download it see the Quick Guide to nXhtml. See nXhtml Notes and Changes for a list of changes. You can also try a beta.

Note that if you have EmacsW32 then nXhtml is already included, but you have to turn it on. And you may want to update to a more recent version of nXhtml. (If you do just put it in the same location where the old version was.)

You need Emacs 22 or later to use nXhtml.


Changing file associations

These are defined in /nxhtml/nxhtml/nxhtml-autoload.el in the function nxhtml-setup-file-assoc, so just modify ‘auto-mode-alist as normal.

Libraries included in the package nXhtml

nXhtml comes with a lot of elisp libraries, some of which you can use separately. I used to have a list here, but I always forget to update that so I have removed it. Please download the whole library if you are interested in some special pieces. Or, pick them from the latest version sources on Launchpad (this may be a beta version though).

Note: Some of the files used to be here on Emacs Wiki too, but I decided to delete them since the latest version of them are now easily available from there. The files I have deleted are ediff-url.el, freemind.el, tabkey2.el and w32-print.el.


Support, FAQs and bugs

The bug tracker is at: https://bugs.launchpad.net/nxhtml. Please report bugs here; see M-x nxhtml-report-bug for more instructions.

There is a list of FAQs at https://answers.launchpad.net/nxhtml/+faqs

Questions that are not bugs can be asked https://answers.launchpad.net/nxhtml

Old solved bugs that were reported on Emacs Wiki are here: NxhtmlOldBugs. Please do not add any more bugs here.


See also MultipleModes MuMaMo CategoryHypermedia HtmlMode