Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

HOWTO: Get gedit to recognise .ss files as HTML

Go to End

5 Posts   1992 Views


Community Member, 54 Posts

19 September 2009 at 2:21pm

Hi guys,

It took me a while to figure this, so I'm posting it here in the hope it will be helpful to others.

If you use Linux/GNOME as your development environment you may be annoyed by the fact that .ss files, when opened by gedit, display as just plain text with no syntax highlighting.

To fix this, simply edit ~/.local/share/mime/packages/user-extension-ss.xml to look like the following:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="">
 <mime-type type="application/x-extension-ss">
  <comment>ss document</comment>
  <glob pattern="*.ss"/>
  <sub-class-of type="text/html"/>

Then run

update-mime-database ~/.local/share/mime
, restart gedit and you should be good to go!


Forum Moderator, 5523 Posts

19 September 2009 at 7:21pm

You should make a page on our tools section -


Community Member, 22 Posts

24 September 2009 at 4:53pm

Edited: 24/09/2009 4:53pm

Which Linux / GNOME are you running? I, for one don't have a share/mime dir... I'm running Ubuntu 8.04


Community Member, 54 Posts

24 September 2009 at 10:47pm

Artyom: I'm running Ubuntu 9.04. Make sure you have hidden files shown (note the '.' in .local). Let me know if you're still having troubles (and check the wiki link below, I've been a bit more detailed)

Willr: done:


Community Member, 22 Posts

25 September 2009 at 5:07am

Edited: 25/09/2009 5:12am


Sorry, false alarm. Not sure why I couldn't find it yesterday... must have been late. (I though i could see ~/.local/share, but had no mime dir in it... )

Worked beautifully. thanks for the tip!