Shtml.xml

From Bluefish Wiki
Jump to: navigation, 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: