Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For example <header> and <footer> are new HTML5 elements, but as it seems in the screen shot below both the elements are marked as red which probably means Geany is telling :
Warining : Unknown elements

                  Geany doesn't know what is header and footer elements

How can I make this normal? What files do I need to edit?


I found that when I revert back to default (white background, as shown in Morlunk's answer) theme then no error occurs. Any way to make this happen in my theme? Because I don't want to leave dark theme

share|improve this question

On the version of Geany shipped with Ubuntu 12.04 (0.21), this doesn't appear to be an issue!

I recommend you update to the latest version of Geany using this PPA or, if you're feeling adventurous, updating to Ubuntu 12.04. Good luck!


Geany 0.21

share|improve this answer
I think the problem is with my theme I downloaded, because when I reverted back to normal theme then it shows no such error. But I can't leave that theme! – Santosh Kumar May 13 '12 at 23:50

The following can be tacked onto the end of the HTML keywords line in filetypes.xml (~/.config/geany/filedefs/filetypes.xml) for the HTML5 new elements to be recognised:

article aside audio canvas command details datalist figure figcaption footer header hgroup keygen mark meter nav output progress section time video wbr

(Geany 1.23.1 has these keywords.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.