#293 Simple HTML mode wanted

0.8a2_(obsolete)
open
nobody
5
2008-07-28
2008-07-25
No

I often need to write an HTML file that is meant to be included into another HTML document -- for example using a PHP include statement.

In these cases, I do not want the <html>, <head>, or <body> tags, since they are already provided by the "master" document.

It would be really useful if KompoZer would provide an editing mode where these tags were not explicitly included.

Discussion

  • Eleanora

    Eleanora - 2008-07-28

    Logged In: YES
    user_id=1860071
    Originator: NO

    hi
    I'm afraid KompoZer doesn't support php in this way. It is a html-editor with a grafic surface. It's like a webbrowser combined with an html-editor. A webbrowser always needs an server with php support to be able to display php-code. That is why you cannot write a php-page with a html-editor.
    I advise you to use XAMPP für an offline server to try your page.

     
  • Eleanora

    Eleanora - 2008-07-28
    • status: open --> pending
     
  • Morten Kjeldgaard

    Logged In: YES
    user_id=42755
    Originator: YES

    No, that's not what I mean. I am not talking about outputting PHP.

    What I mean would be useful would be a mode, where KompoZer only outputs the markup of the text input by the user, so that this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta content="text/html; charset=ISO-8859-1"
    http-equiv="content-type">
    <title></title>
    </head>
    <body>
    Hello world!<br>
    </body>
    </html>

    would be:

    Hello world!<br>

    (shouldn't that be <br/> by the way??

    The file that is then generated, would only contain HTML markup, and not be a fully qualified document, but you would be able to insert it in a CMS system or include it from _another_ file, .shtml, .dhtml, .php or something.

    Cheers,
    Morten

     
  • Morten Kjeldgaard

    • status: pending --> open
     
  • Nobody/Anonymous

    Logged In: NO

    I too would like this
    for something like
    <?php include("pagehead.html");
    include('contents.php'):
    ?>

     

Log in to post a comment.