Difference between revisions of "HTML Toolbar"

From EditPlus Wiki
Jump to: navigation, search
 
(15 intermediate revisions by 14 users not shown)
Line 1: Line 1:
Though the '''HTML Toolbar''' can be customized by going to Tools > Preferences > Tools > Toolbar, there are no buttons for newer and frequently used HTML tags (such as <nowiki><div></nowiki> and <nowiki><span></nowiki>).
+
Though the '''HTML Toolbar''' can be customized by going to Tools > Preferences > Tools > Toolbar, there are no buttons for newer and frequently used HTML tags (<span style="text-decoration:line-through;">such as <nowiki><div></nowiki> and <nowiki><span></nowiki></span> As of version 3.0 both <nowiki><div></nowiki> and <nowiki><span></nowiki> are available!).
  
 
+
In vista to change the HTML toolbar tags, you must modify the xhtmltoolbar.acp (or htmltoolbar.acp) located in users\your_username\appdata\roaming\editplus 3\xhtmlbar.acp.
==htmlbar.acp==
+
'''htmlbar.acp''' is an autocomplete file in the EditPlus program directory that dictates what text is outputted when an HTML Toolbar button is pressed. You can modify this file to make it XHTML compliant, for instance, or you could "repurpose" the Underline "U" button to output <nowiki><div></div></nowiki> tags rather than <nowiki><u></u></nowiki> tags (which are deprecated in HTML4).  
+
 
+
Note: If you check "Use XHTML tags" (Tools > Preferences > General) EditPlus will use xhtmlbar.acp rather than htmlbar.acp. It is also worth noting that version 2.30 (315) has <nowiki><div></div></nowiki> and <nowiki><span></span></nowiki> buttons on the HTML toolbar in both htmlbar.acp and xhtmlbar.acp.
+
 
+
A common modification users make to the default htmlbar.acp file is enabling the paragraph button to generate a closing paragraph tag, necessary for XHTML validation. To do this, edit htmlbar.acp under Program Files/EditPlus 2 and change this:
+
 
+
<pre>#T=P
+
&lt;P></pre>
+
 
+
to this:
+
 
+
<pre>#T=P
+
&lt;p>^!&lt;/p></pre>
+
 
+
Then restart EditPlus.
+
 
+
See [[auto-completion file format]] for more details.
+
 
+
==Resource Hacker==
+
'''Resource Hacker''' is a freeware utility to view, modify, rename, add, delete and extract resources in 32bit Windows executables and resource files (*.res). It can be used to replace the bitmaps within the EditPlus excutable used for the display of toolbar buttons.
+
 
+
# Download [http://delphi.icm.edu.pl/ftp/tools/ResHack.zip Resource Hacker] and install
+
# While EditPlus is not running, open C:\Program Files\EditPlus 2\editplus.exe with Resourse Hacker
+
# Expand the tree folder that says "Bitmap" and then expand "2000"
+
# Select "1033" (the toolbar bitmap) and select "Action > Save Bitmap"
+
# Using Photoshop (or a similar graphics editor), edit the bitmap however you wish, and save it
+
# In Resource Hacker, select "Action > Replace Bitmap" and point to the directory/filename of the newly edited Toolbar Bitmap
+
# Once it's replaced, select "File > Save" then open EditPlus... presto! you have a new bar! (Don't worry, Resourse Hacker will make a backup copy of the original file)
+
 
+
==External Links==
+
*[http://www.users.on.net/johnson/resourcehacker/ Resource Hacker homepage]
+

Latest revision as of 14:57, 13 August 2009

Though the HTML Toolbar can be customized by going to Tools > Preferences > Tools > Toolbar, there are no buttons for newer and frequently used HTML tags (such as <div> and <span> As of version 3.0 both <div> and <span> are available!).

In vista to change the HTML toolbar tags, you must modify the xhtmltoolbar.acp (or htmltoolbar.acp) located in users\your_username\appdata\roaming\editplus 3\xhtmlbar.acp.