Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > PHP/MySQL/Scripting

  • Print
  • + Share This
This chapter is from the book

Extending the HTML Editor

In Chapter 2, you created a simple HTML editor. Although that application eases the process of entering HTML tags and special characters in a document, it doesn't do much else. In particular, it doesn't produce especially attractive or readable HTML documents.

In the remainder of this chapter, you will write a REALbasic method that you can use to generate cleanly formatted HTML. The method, called Indent, will put each tag on a separate line and indent the tags to show the level of nesting of tags. Sets of tags nested inside other sets of tags will be indented farther to show this nesting.

Creating this method requires only a few of the REALbasic programming techniques covered in this chapter.

  • + Share This
  • 🔖 Save To Your Account