yuuji@70: \def\lang{eng} % -*- texinfo -*- for Texinfo V.3.1 yuuji@70: \input texinfo yuuji@70: @setfilename yahtmle yuuji@70: @settitle Yet Another html-mode for Emacs yuuji@272: @direntry yuuji@272: * yahtml-e: (yahtmle). Yet Another html-mode for Emacs (English). yuuji@272: @end direntry yuuji@70: yuuji@70: @iftex yuuji@70: @c @syncodeindex fn cp yuuji@272: @c Last modified Fri May 11 15:42:22 2012 on firestorm yuuji@70: @syncodeindex vr cp yuuji@70: @end iftex yuuji@70: yuuji@70: @titlepage yuuji@70: @sp 10 yuuji@70: @center yuuji@70: @subtitle Yet Another html-mode for emacs yuuji@70: @title // yahtml // yuuji@70: %@subtitle // yahtml // yuuji@271: @author @copyright{} 1994-2012 by HIROSE, Yuuji [yuuji@@yatex.org] yuuji@70: @end titlepage yuuji@70: yuuji@70: @node Top, Intro, (dir), (dir) yuuji@70: @comment node-name, next, previous, up yuuji@70: yuuji@70: @menu yuuji@70: * Intro:: Introduction yuuji@70: * Installation:: Installing yahtml yuuji@70: * Command Invocation:: Using External Commands yuuji@70: * Completion:: Input with Completion yuuji@70: * Jump:: Moving the Cursor yuuji@70: * Changing and Deleting:: Changing and Deleting yuuji@70: * CSS Support:: Style Sheet Support yuuji@70: * Customizations:: List of Customize Variables yuuji@70: * Copying:: Copyright yuuji@70: * Concept Index:: Index yuuji@70: @end menu yuuji@70: yuuji@70: @node Intro, Installation, Top, Top yuuji@70: @comment node-name, next, previous, up yuuji@70: @chapter Introduction yuuji@70: @cindex Demacs yuuji@70: @cindex Mule yuuji@70: @cindex LaTeX yuuji@70: @cindex yahtml yuuji@70: yuuji@70: yahtml is a package to support creating HTML documents on Emacsens. Easy yuuji@70: input of elements (tags) by completion, syntax checking with programs like yuuji@70: weblint, and invoking the appropriate browser or image viewer depending on yuuji@70: the cursor position is its main features. yuuji@70: yuuji@70: (This Info is still incomplete) yuuji@70: yuuji@70: @node Installation, Command Invocation, Intro, Top yuuji@70: @comment node-name, next, previous, up yuuji@70: @chapter Installing yahtml yuuji@70: @menu yuuji@70: * Setting up yahtml:: yuuji@70: * Setting environments for weblint browsers and image viewers:: yuuji@70: * Setting environment variables for WWW pages:: yuuji@70: @end menu yuuji@70: yuuji@70: @node Setting up yahtml, Setting environments for weblint browsers and image viewers, Installation, Installation yuuji@70: @comment node-name, next, previous, up yuuji@70: @section Setting up yahtml yuuji@70: yuuji@70: yuuji@70: Add the following to @file{~/.emacs} yuuji@70: yuuji@70: @lisp yuuji@70: (setq auto-mode-alist yuuji@70: (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist)) yuuji@70: (autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t) yuuji@70: @end lisp yuuji@70: yuuji@70: Next, add to load-path the directory with the yahtml files yuuji@70: (@file{yahtml.el}, @file{yatexlib.el}, @file{yatexprc.el}). For example, yuuji@70: if you put them in @file{~/src/emacs/yahtml}, yuuji@70: yuuji@70: @lisp yuuji@70: (setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path)) yuuji@70: @end lisp yuuji@70: yuuji@265: @noindent yuuji@70: is what you add. yuuji@70: yuuji@70: By this, yahtml will be automatically loaded when editing files with .html yuuji@70: extensions. "yahtml" will be displayed on the mode line if no errors yuuji@265: occurred. yuuji@70: yuuji@70: @node Setting environments for weblint browsers and image viewers, Setting environment variables for WWW pages, Setting up yahtml, Installation yuuji@70: @comment node-name, next, previous, up yuuji@70: @section Setting environments for weblint, browsers, and image viewers yuuji@70: yuuji@70: Check the variables for invoking external commands and modify as needed. yuuji@70: Defaults are in parenthesis. yuuji@70: yuuji@70: @table @code yuuji@70: @item yahtml-www-browser yuuji@70: @dots{} browser command name (netscape) yuuji@70: @item yahtml-image-viewer yuuji@70: @dots{} image viewer command name (xv) yuuji@70: @item yahtml-lint-program yuuji@70: @dots{} syntax check programs command name (jweblint) yuuji@70: @item yahtml-kanji-code yuuji@70: @dots{} kanji code for HTML files yuuji@70: @end table yuuji@70: yuuji@70: @node Setting environment variables for WWW pages, , Setting environments for weblint browsers and image viewers, Installation yuuji@70: @comment node-name, next, previous, up yuuji@70: @section Setting environment variables for WWW pages yuuji@70: yuuji@70: Variables regarding path names for files that will be your home page. yuuji@70: @table @code yuuji@70: @item yahtml-path-url-alist yuuji@70: @dots{} list of matching path name on file system and URLs yuuji@70: @item yahtml-directory-index yuuji@70: @dots{} index file displayed when none is given in URL. Usually yuuji@70: @file{index.html} on NCSA type httpd and @file{Welcome.html} on yuuji@265: CERN types. yuuji@70: @end table yuuji@70: yuuji@70: Examples for @code{yahtml-path-url-alist}. If @file{/home/yuuji/http/} yuuji@70: is @code{http://localhost/~yuuji} at home and @file{/usr/home/yuuji/www/} yuuji@70: is @code{http://www.keio.ac.jp/~yuuji/} at work, then yuuji@70: yuuji@70: @lisp yuuji@70: (setq yahtml-path-url-alist yuuji@70: '(("/home/yuuji/http" . "http://localhost/~yuuji") yuuji@70: ("/usr/home/yuuji/www" . "http://www.keio.ac.jp/~yuuji"))) yuuji@70: @end lisp yuuji@70: yuuji@70: Any number of additions can be made to this list. yuuji@70: yuuji@70: @node Command Invocation, Completion, Installation, Top yuuji@70: @comment node-name, next, previous, up yuuji@70: @chapter Invoking external commands yuuji@70: yuuji@70: For easy use of commands that are handy when editing HTML files. yuuji@70: @table @kbd yuuji@70: @item [prefix] t j yuuji@70: @dots{} Invoke HTML syntax checker (jweblint) yuuji@70: @item [prefix] t p yuuji@70: @dots{} Display current page in browser yuuji@70: @item [prefix] t r yuuji@70: @dots{} Reload current page if browser is already running yuuji@70: @end table yuuji@70: yuuji@70: @node Completion, Jump, Command Invocation, Top yuuji@70: @comment node-name, next, previous, up yuuji@70: @chapter Completion Input yuuji@70: yuuji@70: Completion input of HTML elements is done through the same key strokes as yuuji@70: YaTeX's begin-type completion, section-type completion, large-type yuuji@70: completion, maketitle-type completion, and accent completion. yuuji@70: Corresponding elements in this order is; elements that span multiple yuuji@70: lines, empty elements such as img, tags that start and end in a yuuji@70: single line, elements with no attributes or contents, and special or yuuji@70: symbol entities. yuuji@70: yuuji@70: @table @kbd yuuji@70: @item [prefix] b (YaTeX begin-type completion) yuuji@70: @dots{} yuuji@70: @example yuuji@70: