Shtml.xml

From Bluefish Wiki
Revision as of 11:16, 17 May 2011 by Fal7i (talk | contribs) (Created page with '== shtml.xml == <pre> <?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-type type="text/html"> <comme…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

shtml.xml

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="text/html">
    <comment>server parsed HTML</comment>
    <glob pattern="*.shtml"/>
  </mime-type>
</mime-info>

There is no .shtml extension in /usr/share/mime/packages/freedesktop.org.xml (or /usr/local/share/mime/packages/freedesktop.org.xml) from package shared-mime-info-0.90

If files with extension .shtml are not highlighted as HTML in Bluefish

  1. copy the xml file above in Bluefish and save it as shtml.xml in ~/.bluefish
  2. create ~/.local/share/mime/packages directory if it does not exist
  3. copy shtml.xml in ~/.local/share/mime/packages/
  4. update the mime database
$ mkdir -p ~/.local/share/mime/packages
$ cp ~/.bluefish/shtml.xml  ~/.local/share/mime/packages/
$ update-mime-database ~/.local/share/mime/


See also: