/plugins/XML/tags/release-2-0-7/docs/htmlsidekick.html

# · HTML · 137 lines · 112 code · 25 blank · 0 comment · 0 complexity · a58142316cf0f4b7b386f94148f1bef9 MD5 · raw file

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd">
  2. <html>
  3. <head>
  4. <title>HtmlSideKick</title>
  5. <style type="text/css">
  6. .author {
  7. font-weight: strong;
  8. font-size: -1;
  9. };
  10. .smaller {
  11. font-size: -1;
  12. };
  13. </style>
  14. </head>
  15. <body bgcolor="#FFFFFF">
  16. <table bgcolor="#CCCCFF" summary="Header" cellspacing="0" border="0" width="100%" >
  17. <tr>
  18. <td valign="top"><strong><font size="+2">HtmlSideKick</font></strong></td>
  19. <td valign="top" align="right">
  20. <p class="author">Author: Dale Anson </p>
  21. <p class="smaller">based on an HTML grammar for javacc by Brian Goetz, Quiotix </p>
  22. </td>
  23. </tr>
  24. </table>
  25. <table summary="Introduction" border="0" cellspacing="0" cellpadding="3" width="100%">
  26. <tr align="center" >
  27. <td bgcolor="#7FB2FF" width="100%">
  28. <strong><font color="#FFFFFF" size="+1"><a name="intro">Introduction</a></font></strong>
  29. </td>
  30. </tr>
  31. </table>
  32. <p>
  33. Suggestions welcome, please contact <tt>jedit-devel@lists.sourceforge.net</tt>. </p>
  34. <p>
  35. This plugin parses HTML and JSP files and presents a tree view of the file to aid in navigation. In addition, it provides completion popups for elements, entities and attributes, and automatic insertion or completion of close-tags. </p>
  36. <p>
  37. While designed specifically for HTML and JSP files, this plugin does a pretty good job of displaying ASP, ColdFusion, VRML, PHP, SGML, and Velocity files. Needless to say, it works with XML files too. You can elect to use this plugin for those edit modes by going to Plugins -&gt; Plugin Options... -&gt; SideKick -&gt; Parsers, then selecting "<tt>html</tt>" for those edit modes. </p>
  38. <h3>Completion</h3>
  39. <p> The HtmlSideKick supports completion for elements and attributes. The completion info provided is not based on the DOCTYPE at the top, but rather based on an HTML "completion info" file which is included with the XML plugin. The DOCTYPE is ignored by the HtmlSideKick.</p>
  40. <p> If you are editing non-XML-compliant HTML, keep in mind that XML plugin provides completion, and does not like attributes unless they are in quotes, so it may pop up completions in inappropriate places if your use of quotes is not XML-compliant. </p>
  41. <h3> Validation </h3>
  42. <p> HtmlSideKick provides no validation. If you switch to the XML parser, you can get full validation based on any DTD or XML Schema. The "loosest" HTML grammar recognized by the XML parser is this: </p>
  43. <pre>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;xhtml1-transitional.dtd&quot;&gt;
  44. </pre>
  45. <table summary="Settings" border="0" cellspacing="0" cellpadding="3" width="100%">
  46. <tr align="center">
  47. <td bgcolor="#7FB2FF" width="100%">
  48. <strong><font color="#FFFFFF" size="+1">
  49. <a name="intro"> Settings</a></font></strong>
  50. </td>
  51. </tr>
  52. </table>
  53. <p> This plugin is an extension of both the <a href="jeditresource:/SideKick.jar!/index.html">SideKick</a> and the
  54. <a href="jeditresource:/XML.jar!/index.html">XML</a> plugins. This means that common options for this plugin are specified in the SideKick plugin options. Additional completion options, such as finishing the close-tag when you type <tt>&lt;/</tt>, or providing element/attribute popups based on an XML DTD or schema, are specified in the XML plugin's general options. </p>
  55. <p>
  56. The settings for HtmlSideKick are found at Plugins -&gt; Plugin Options... -&gt; HtmlSideKick. </p>
  57. <h3>Showing Tag Attributes</h3>
  58. There are 4 settings that affect the display of tag attributes:
  59. <ol>
  60. <li><b>Show Tag Attributes</b> When checked, all non-standard attributes (if any) for the tag will be displayed. </li>
  61. <li><b>Show Core Attributes</b> When checked, the standard core html tag attributes (if any) will be displayed.
  62. The core attributes are: "id", "class", "style", and "title". </li>
  63. <li><b>Show Language Attributes</b> When checked, the standard attributes (if any) for internationalization will be displayed.
  64. The language attributes are: "lang" and "dir". </li>
  65. <li><b>Show Script Attributes</b> When checked, the standard attributes (if any) for scripting will be displayed.
  66. The scripting attributes are: "onclick", "ondblclick", "onmousedown", "onmouseup", "onmouseover",
  67. "onmousemove", "onmouseout", "onkeypress", "onkeydown", and "onkeyup". </li>
  68. </ol>
  69. <p>
  70. Regardless of these settings, a full listing of the tag attributes, sorted alphabetically, can be seen by moving the
  71. mouse pointer over the tag display in the tree.
  72. </p>
  73. <h3>Showing Brackets</h3>
  74. <p> Display of &lt; and &gt; can be turned on or off by use of the <b>Show tags with &lt; and &gt;</b> checkbox.
  75. </p>
  76. <h3>Showing Tags</h3>
  77. <p>There are 3 settings that affect the display of tags themselves: </p>
  78. <ol>
  79. <li><b>Show All HTML Tags</b> When selected, all html tags will be displayed. </li>
  80. <li><b>Show Block HTML Tags only</b> When selected, only those html tags that are a "block", that is,
  81. there is both a start tag and an end tag, will be displayed. </li>
  82. <li><b>Show JSP Tags</b> When checked, JSP tags will be displayed. </li>
  83. </ol>
  84. <table summary="Future plans" border="0" cellspacing="0" cellpadding="3" width="100%">
  85. <tr align="center">
  86. <td bgcolor="#7FB2FF" width="100%">
  87. <strong><font color="#FFFFFF" size="+1"><a name="future"> Future Plans</a></font></strong>
  88. </td>
  89. </tr>
  90. </table>
  91. <ul>
  92. <li> Full W3C validation based on DTD. </li>
  93. </ul>
  94. <table summary="History" border="0" cellspacing="0" cellpadding="3" width="100%">
  95. <tr align="center" >
  96. <td bgcolor="#7FB2FF" width="100%">
  97. <strong><font color="#FFFFFF" size="+1"><a name="history">History</a></font></strong>
  98. </td>
  99. </tr>
  100. </table>
  101. <ul>
  102. <li>
  103. <b> Version 0.5</b> Merged into XML plugin version 1.1 </li>
  104. <li> <b>Version 0.4</b> requires JDK 1.4, jEdit 4.3pre3, SideKick 0.6, XML 0.18, XercesPlugin 2.8
  105. <ul>
  106. <li> Bugfix release </li>
  107. <li> Extends from XmlParser (in the XML plugin) and now supports element tag, closing, and attribute completions, from HTML and JSP modes. (Alan Ezust). </li>
  108. </ul>
  109. </li>
  110. </ul>
  111. </body>
  112. </html>