Hello! Do check the website of the week by visiting http://newwebsitepick.info . The website also says how you can nomiate your website if you have one. ...
I have something like this in a php file: <a href="<?php echo get_settings('home'); ?>">Home</a> The nxml parser gets upset when finding < inside the...
... PHP scripts are not XML. Repeat: PHP scripts are not XML. At least not in general. The XML spec forbids literal < and & in attribute values. No amount of...
... Yes, thanks, but does the nxml parser forbid it? It would be very convinient if the parser allowed it. Is it possible in some way to allow it? Or, maybe...
... Here are some further comments if someone is thinking about this: The idea of .php web pages as far as I understand it is that a php page looks like a ...
... The above way of doing php is a bit "old fashioned". I would suggest switching to a template engine, like Smarty (http://smarty.php.net/). Then the line...
... Thanks Søren. I did not know about that. However in this particular case I am not the author, rather the user. The application I am using is WordPress. I...
... No, it is written for XML, and handles that very well. If you choose to use it for other syntax's then you'll need to accept that there are risks. ... Why,...
... Yes, I know and I agree. It is just that it would be nice in my opinion to have a little bit tweaked nxml-mode working for php as well. But php pages are...
... Which makes the two things incompatible? XML and *some* php files? ... Yes, if you look at the url, it is a Processing instruction; Meant to be application...
... It is not a nxml-mode issue, but a PHP issue. ... There exists a php-mode. Why don't you use it? If you don't like some features in it either, then this is...
... Yes. ... Thanks, I see. Then it looks like php was written to be xml compliant, but that it fails in the case below. ... Thanks. ... nxml-mode is better...
... I think the only way would be a configuration variable that makes "<" allowed in an attribute; normal users would let it set to nil, and PHP users could...
... Yes, that is the way I am thinking. ... That is difficult to handle, but at the moment I want to skip that. An argument would just be anything between...
I use emacs' mmm-mode (http://mmm-mode.sourceforge.net/) for exactly this purpose. It allows to assign different major modes to different sections within the...
... Thanks Justus, that sounds nice. There is actually an entry on http://www.emacswiki.org/cgi-bin/wiki/NxmlModeForXHTML where Dean Scarff says he has got...
... From your comments it looks more like out-of-the-head ;-) ... I would be glad if you wanted to share this "trivial" customization with us. That would...
... It might be trivial, but it would also be wrong. Part of the xml spec is that the encoding is utf-8 unless otherwise specified in the xml header. The...
... Thanks, then the current behaviour is surely correct from that point of view. However in my case I will have to think about a workaround since php was not...
... But it does 'disturb' the validity to the XML standard, as used by nxml-mode? ... Yes, I agree. nxml-mode is very good for XML. Let's keep it that way. ...
Hi, it seems like the hooks in after-change-major-mode-hook are not run when entering nxml-mode. From what I can see, this is due to using run-hooks instead of...
... And if you want to be backwards-compatible (run-mode-hooks doesn't exist in older Emacs versions, possibly <21.3): (if (fboundp 'run-mode-hooks) ...
... nxml-mode does more than that. It also says where the errors are and does this very nicely, with a minimal set of errors. For instance, the fact that the...
... nxml-mode doesn't use the DTD (or possibly only for entities?), but a RNC schema. ... Only if this wouldn't bloat it; nxml-mode must still be very fast in...
... No, this is not completely true. The encoding may be specified in an external way. A customizable local variable could be such an external declaration; so,...
... I guess the result would be no better and no worse than if the sections to ignore where just erased instead. At least that is the simple case I am after...
... Thanks for the education. I save this. ... I had no idea this was there. Thanks. ... On the page http://www.emacswiki.org/cgi-bin/wiki/PhpMode it says that...