I just figured out that my pages weren't working in Internet Explorer because my wise butt was leaving the license comment above the DOCTYPE in HTML documents. http://www.answers.com/main/ntquery?s=Quirks+mode&gwp=8#Triggering_diffe...
Kete F wrote:
I just figured out that my pages weren't working in Internet Explorer because my wise butt was leaving the license comment above the DOCTYPE in HTML documents. http://www.answers.com/main/ntquery?s=Quirks+mode&gwp=8#Triggering_diffe...
Yup. Edit the HTML template and save in folder:
${HOME}/.config/geany/templates/files
It will override the default template in the installation set.
While you're at it, you might want to change to HTML5 (or whatever it's called this week) DTD-less doctype.
http://en.wikipedia.org/wiki/Document_type_declaration#HTML5_DTD-less_DOCTYP... http://diveintohtml5.org/
e.g.:
<!DOCTYPE html> <html lang="en-au">
<head> <title>{untitled}</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta name="generator" content="{geanyversion}" /> </head>
<body>
</body> </html>
On Wed, 09 Feb 2011 08:23:33 +1100 Ross McKay rosko@zeta.org.au wrote:
While you're at it, you might want to change to HTML5 (or whatever it's called this week) DTD-less doctype.
HTML5 is still in some kind of a draft mode. Even most of browser do support some HTML5, its still not complete.
Cheers, Frank
Frank Lanitz wrote:
HTML5 is still in some kind of a draft mode. Even most of browser do support some HTML5, its still not complete.
And yet, for people actually building websites, some of its features should be used right now. HTML standards have always been running to catch up with what the browsers are doing, it's just that this time, the browser vendors by and large agree on where that will end up. Even IE9!
At the very least, authors should be using some of the new input types (email, url, tel) to make it easier for people with iPhones to enter data. Also, the new video element makes it possible to deploy video to a browser that has no Flash or Quicktime player (e.g. various phones). Just to pick a couple of things randomly.
And you wouldn't want to still be using the acronym tag or others that will be dropped (and won't make it into some new browsers on mobile devices).
I don't see any good reason for not moving to HTML5 at least in part. Sure, some of the new stuff has little to no support (e.g. date inputs), but a lot of the new stuff is already there in the major standards- based browsers and can be simulated in IE with a little script. The only real hiccup with IE is that it doesn't recognise the new semantic tags as block elements, but that's easily fixed with one of these:
http://remysharp.com/2009/01/07/html5-enabling-script/ http://www.webaware.com.au/lib/ie-html5/ie-html5.js http://www.modernizr.com/
... followed by a block like this in your stylesheet:
section, article, details, aside, figure, figcaption, header, footer, hgroup, menu, nav, video /* ... etc. */ { display: block; }
Anyway, this is a bit off-topic for Geany, but either way the OP can set up their HTML template according to how they want to work, e.g. standards mode (be it HTML 4, XHTML, or HTML5) instead of quirks mode that the default template throws them into.
By the way, I've always thought it was way to easy to figure out how to fill out the Preferences template, and tonight, I found out just how hard and time-consuming it is to figure out the actual file templates are in /usr/share/geany. I think where the manual mentions ~/.config/geany, it should also mention /usr/share/geany because I finally located those templates with a terminal before clicking on the "Config file paths" link b/c that looked like it was going to explain ~/.config/geany.
On Tuesday February 8, 2011 4:23:33 pm Ross McKay wrote:
Kete F wrote:
I just figured out that my pages weren't working in Internet Explorer because my wise butt was leaving the license comment above the
DOCTYPE
in HTML documents.
http://www.answers.com/main/ntquery?s=Quirks+mode&gwp=8#Triggering_diffe...
ent_rendering_modes
Yup. Edit the HTML template and save in folder:
${HOME}/.config/geany/templates/files
It will override the default template in the installation set.
While you're at it, you might want to change to HTML5 (or whatever it's called this week) DTD-less doctype.
http://en.wikipedia.org/wiki/Document_type_declaration#HTML5_DTD-
less_DOCTY
e.g.:
<!DOCTYPE html>
<html lang="en-au">
<head> <title>{untitled}</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta name="generator" content="{geanyversion}" /> </head>
<body>
</body> </html>
On 16 February 2011 12:05, Kete kwfj@suddenlink.net wrote:
By the way, I've always thought it was way to easy to figure out how to fill out the Preferences template, and tonight, I found out just how hard and time-consuming it is to figure out the actual file templates are in /usr/share/geany. I think where the manual mentions ~/.config/geany, it should also mention /usr/share/geany because I finally located those templates with a terminal before clicking on the "Config file paths" link b/c that looked like it was going to explain ~/.config/geany.
Hi,
Yes the manual is a bit funny, AFAICT it reads user modified templates from the user config directory first as described in "filetype templates"and if it doesn't exist there from the system installation as described in "custom file templates" . So it does describe the process albiet in two separate sections. I think the distinction between the two is historical and maybe it needs to go away, at least in the manual. I guess that depends on what further developments Nick is going ot make in the template area.
The custom file templates section references the "configuration file paths" section which references the "installation prefix" section which tells you how to find out the prefix. Whilst it takes two clicks, this is the right way to do it, because distributions can put Geany in different places (and users can compile it anywhere), so having a hard coded "/usr/share" may not be right, and of course is absolutely wrong on Windows.
Cheers Lex
On Tuesday February 8, 2011 4:23:33 pm Ross McKay wrote:
Kete F wrote:
I just figured out that my pages weren't working in Internet Explorer because my wise butt was leaving the license comment above the
DOCTYPE
in HTML documents.
http://www.answers.com/main/ntquery?s=Quirks+mode&gwp=8#Triggering_diffe...
ent_rendering_modes
Yup. Edit the HTML template and save in folder:
${HOME}/.config/geany/templates/files
It will override the default template in the installation set.
While you're at it, you might want to change to HTML5 (or whatever it's called this week) DTD-less doctype.
http://en.wikipedia.org/wiki/Document_type_declaration#HTML5_DTD-
less_DOCTY
e.g.:
<!DOCTYPE html>
<html lang="en-au">
<head> <title>{untitled}</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta name="generator" content="{geanyversion}" /> </head>
<body>
</body> </html>
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Lex Trotman wrote:
[...] Whilst it takes two clicks, this is the right way to do it, because distributions can put Geany in different places (and users can compile it anywhere), so having a hard coded "/usr/share" may not be right, and of course is absolutely wrong on Windows.
And just to back that up: I compile from svn source on Fedora, so my core templates are in /usr/local/share/geany
Dnia środa, 16 lutego 2011 o 02:43:56 Lex Trotman napisał(a):
Geany in different places (and users can compile it anywhere), so having a hard coded "/usr/share" may not be right, and of course is absolutely wrong on Windows.
it should be "/Documents and Settings/All Users/Application Data/" on Windows, of course it is a special folder and the actual path may vary.
Chris