Info file: yahtmle, -*-Text-*- produced by `texinfo-format-buffer' from file `yahtmle.tex' using `texinfmt.el' version 2.38 of 3 July 1998. File: yahtmle, Node: Top, Next: Intro, Prev: (dir), Up: (dir) * Menu: * Intro:: Introduction * Installation:: Installing yahtml * Command Invocation:: Using External Commands * Completion:: Input with Completion * Jump:: Moving the Cursor * Changing and Deleting:: Changing and Deleting * CSS Support:: Style Sheet Support * Customizations:: List of Customize Variables * Copying:: Copyright * Concept Index:: Index File: yahtmle, Node: Intro, Next: Installation, Prev: Top, Up: Top Introduction ************ yahtml is a package to support creating HTML documents on Emacsens. Easy input of elements (tags) by completion, syntax checking with programs like weblint, and invoking the appropriate browser or image viewer depending on the cursor position is its main features. (This Info is still incomplete) File: yahtmle, Node: Installation, Next: Command Invocation, Prev: Intro, Up: Top Installing yahtml ***************** * Menu: * Setting up yahtml:: * Setting environments for weblint browsers and image viewers:: * Setting environment variables for WWW pages:: File: yahtmle, Node: Setting up yahtml, Next: Setting environments for weblint browsers and image viewers, Prev: Installation, Up: Installation Setting up yahtml ================= Add the following to `~/.emacs' (setq auto-mode-alist (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist)) (autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t) Next, add to load-path the directory with the yahtml files (`yahtml.el', `yatexlib.el', `yatexprc.el'). For example, if you put them in `~/src/emacs/yahtml', (setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path)) is what you add. By this, yahtml will be automatically loaded when editing files with .html extensions. "yahtml" will be displayed on the mode line if no errors occurred. File: yahtmle, Node: Setting environments for weblint browsers and image viewers, Next: Setting environment variables for WWW pages, Prev: Setting up yahtml, Up: Installation Setting environments for weblint, browsers, and image viewers ============================================================= Check the variables for invoking external commands and modify as needed. Defaults are in parenthesis. `yahtml-www-browser' ... browser command name (netscape) `yahtml-image-viewer' ... image viewer command name (xv) `yahtml-lint-program' ... syntax check programs command name (jweblint) `yahtml-kanji-code' ... kanji code for HTML files File: yahtmle, Node: Setting environment variables for WWW pages, Prev: Setting environments for weblint browsers and image viewers, Up: Installation Setting environment variables for WWW pages =========================================== Variables regarding path names for files that will be your home page. `yahtml-path-url-alist' ... list of matching path name on file system and URLs `yahtml-directory-index' ... index file displayed when none is given in URL. Usually `index.html' on NCSA type httpd and `Welcome.html' on CERN types. Examples for `yahtml-path-url-alist'. If `/home/yuuji/http/' is `http://localhost/~yuuji' at home and `/usr/home/yuuji/www/' is `http://www.keio.ac.jp/~yuuji/' at work, then (setq yahtml-path-url-alist '(("/home/yuuji/http" . "http://localhost/~yuuji") ("/usr/home/yuuji/www" . "http://www.keio.ac.jp/~yuuji"))) Any number of additions can be made to this list. File: yahtmle, Node: Command Invocation, Next: Completion, Prev: Installation, Up: Top Invoking external commands ************************** For easy use of commands that are handy when editing HTML files. `[prefix] t j' ... Invoke HTML syntax checker (jweblint) `[prefix] t p' ... Display current page in browser `[prefix] t r' ... Reload current page if browser is already running File: yahtmle, Node: Completion, Next: Jump, Prev: Command Invocation, Up: Top Completion Input **************** Completion input of HTML elements is done through the same key strokes as YaTeX's begin-type completion, section-type completion, large-type completion, maketitle-type completion, and accent completion. Corresponding elements in this order is; elements that span multiple lines, empty elements such as img, tags that start and end in a single line, elements with no attributes or contents, and special or symbol entities. `[prefix] b (YaTeX begin-type completion)' ...
Completion for elements that do not have end tags and require only
attributes. Possible completions are,