Local file links should be transformed to relative file links if possible

(defadvice emacs-wiki-markup-link (around sacha activate)
  "Resolve the matched wiki-link into its ultimate  form.
Images used the  tag."
  ;; avoid marking up urls that appear to be inside existing HTML
  (when (and (not (eq (char-after (point)) ?\"))
             (not (eq (char-after (point)) ?\>)))
    (let* (string
           (wiki-link (match-string 0))
           (url (emacs-wiki-link-url wiki-link))
           (name (emacs-wiki-escape-html-string
                  (emacs-wiki-wiki-visible-name wiki-link))))
      (when url
        (unless (emacs-wiki-wiki-url-p url)
          (setq url
                 (if (string-match "public_html" url)
      (setq string
            (if (null url)
                (if (and emacs-wiki-serving-p
                          (emacs-wiki-wiki-base wiki-link)))
                     (emacs-wiki-wiki-base wiki-link) name)
                  (format "%s"
                           emacs-wiki-maintainer name))
              (if (save-match-data
                    (string-match emacs-wiki-image-regexp url))
                  (if (string-equal url name)
                      (format "" url)
                    (format "\"%s\"" url name))
                (if (save-match-data
                      (string-match emacs-wiki-image-regexp name))
                    (format "" url name)
                  (format "%s" url name)))))
      (add-text-properties 0 (1- (length string))
                           '(rear-nonsticky (read-only) read-only
                                            t) string)
      (setq ad-return-value string))))


  • javad

    The webbrowser control can navigate to a webpage and provide you with an HTML DOM object. You can then:

    private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
    System.Windows.Forms.HtmlElementCollection A = webBrowser1.Document.GetElementsByTagName(“IMG”);
    for (int x = 0; x < A.Count; x++)
    //at this point, you can save the urls to a database or file
    //you can also url to the file itself and copy the file to your machine…this can also be very illegal, too.

    private void Form1_Load(object sender, EventArgs e)

    but windows save html respective file in folder name [html file name]_files
    for example
    html file = test.html ; folder name is test_files
    you can search in source file directory and search folder