How to edit an html fragment inside a document, implicitly wrapped in HTML and BODY
[email protected] (Christian Nybø) Thu, 16 Nov 2006 15:19:24 +0100
| Newsgroups | gmane.emacs.psgml.user |
|---|---|
| Message-ID | <[email protected]> |
I would like to use psgml's html-mode on parts of a document. mmm-mode seems to be the most likely way of doing that. The document is mostly in POD format. Pod is the documentation format of Perl. Sometimes there are fragments of html. These fragments presume that they are wrapped in <html><body>, and this confuses psgml. How would you go about telling psgml that it should presume that the tags 'html' and 'body' are present? here is a sample of the document: =slide Scripting? <p>Hva er scripting?</p> <p>Alle programmer skrives i et eller annet programmeringsspråk.</p> <p>Kildekoden må enten kompileres eller tolkes (interpreteres) for å kjøre.</p> <p>Script er programmer skrevet i et høynivå-programmeringsspråk som oftest både kompileres og tolkes hver gang de kjøres.</p> <p>Eksempler på script-språk er <ul> <li>Perl,</li> <li>PHP,</li> <li>Python,</li> <li>Ruby,</li> <li>Scheme og</li> <li>Unix Shell (SH, BASH og ZSH)</li> </ul> </p> <p>Ofte korte programmer for svært avgrensede oppgaver.</p> <p>Kan også brukes for å skrive store applikasjoner, både med og uten grafisk grensesnitt.</p> =comments With mmm-mode, html-mode is invoked for the fragment from the second line to the start of the "=comments" pod command. Thanks, -- chr ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV