www.webdeveloper.com
Results 1 to 2 of 2

Thread: html editor

  1. #1
    Join Date
    Oct 2010
    Posts
    25

    html editor

    Hi Everyone,

    I am currently working on a single page template for my boss. We are going to hand it over to someone else who is going to use the template and add there content inside.

    Now for those who use it, may or may not be html or programming friendly. Are there any good resources out there that they can pop the file(s) into and edit it on their own?

    I guess something along the lines of Aloha editor, or dreamweaver (where they see the content and can just edit it themselves).

    The help would be greatly appreciated.

    Thank you.

  2. #2
    Join Date
    Mar 2012
    Posts
    1,113
    One way to allow untrained input is to segregate the content from the formatting, so that plain text can be used as a source. This can be achieved using the PHP include command, with, or without, the HTML <PRE> tag. E.g.

    <div>
    <pre>
    <?php include 'file.txt' ?>
    </pre>
    </div>

    Will include the content of a text file called "file.txt" which is placed in the root directory of the site. The <PRE> tag causes the spaces and carriage returns to be presented instead of ignored.

    Note: The PHP include function is a server-side command, and is not supported by the browsers. To use PHP commands, the source file must use the file suffix ".php" instead of ".html". PHP may not be supported by some free hosting accounts.
    Last edited by jedaisoul; 03-28-2013 at 01:24 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles