Re: what are you using to write webpages?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On fre, 2005-01-21 at 18:31 +0100, Rolf Gerrits wrote: 
> BB Cao wrote:
> 
> >Hi Everyone,
> >
> >I am starting to write a webpage for my own, just
> >little curious in choosing softwares:
> >What are you using to write webpages?
> >
> >Thanks!
> >
> >Best,
> > BB Cao
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Tired of spam?  Yahoo! Mail has the best spam protection around 
> >http://mail.yahoo.com 
> >
> >  
> >
> Mozilla (Composer) works nice.
> 
> Rolf
> 

I use GNU Emacs with Tidy
(http://tidy.sourceforge.net/src/tidy_src.tgz). I have the following
lines in my .emacs file:

(defcustom my-tidy-command "tidy -indent" "")

(defun my-tidy-buffer ()
  "(my-tidy-buffer) runs tidy on the current buffer."
  (interactive)
  (let ((error-buffer "*tidy-errors*")
        (saved-point (point)))
    (when (get-buffer error-buffer)
      (kill-buffer error-buffer))
    (shell-command-on-region (point-min) (point-max) 
			my-tidy-command	nil t error-buffer)
    (deactivate-mark) ;seems like `shell-command-on-region' 
			; modifies the mark
    (goto-char (min saved-point (point-max)))
    (set-buffer error-buffer)
    (compilation-mode)
    (goto-char (point-min))
    (unless (looking-at "\\<line\\>")
      (delete-window (get-buffer-window error-buffer))
      (message "Tidy: No warnings or errors were found."))))

(defun my-sgml-mode-hook ()
  (local-set-key [f11] 'my-tidy-buffer))

-- 
August


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux