editplus customizations faq

update: this faq is no longer being updated. instead i’ve opted to set up the editplus wiki as a community collaborative resource for editplus. the current wiki-fied faq is available here.

this faq is for editplus 2, a text editor which i use for all my html, css, javascript, php, and sql coding, as well as note-taking and todo list-making.

how do i make editplus open with a blank document?
goto Tools > Preferences > General and check “Create new document on start up”

how do i change the output of the HTML toolbar buttons?
edit the htmlbar.acp file under Program Files\EditPlus 2

how do i change the default HTML template?
edit the template.html file under Program Files\EditPlus 2

how do i add PHP to the list under File > New?

  1. create a new file called template.php and save it in Program Files\EditPlus 2
  2. select File > New > Configure Templates
  3. click Add, set “Menu text” to PHP and set the “File path” to the location of template.php

how do i make the HTML toolbar appear when editing a CSS file?

  1. goto Tools > Preferences > Settings & syntax
  2. select CSS under “File types” and check “Show HTML toolbar”

how do i make editplus correctly highlight strings in PHP that contain carriage returns/line feeds?

  1. edit php.stx under Program Files\EditPlus 2
  2. change #CONTINUE_QUOTE=n to #CONTINUE_QUOTE=y

how do i make editplus correctly highlight php heredoc strings?

  1. edit php.stx under Program Files\EditPlus 2
  2. add the following lines, where EOF is the heredoc identifer you plan to use in your php files. alternatively you can leave out the EOF if you don’t plan on having any semicolons in your heredoc strings

    #COMMENTON2=<<<EOF
    #COMMENTOFF2=EOF;

  3. save php.stx
  4. select Document > Refresh STX/ACP
  5. select Tools > Preferences > Settings & syntax
  6. select “PHP” under File types
  7. select the “Syntax color” tab
  8. make “Block Comment 2″ the same color as Quotation and Quotation 2 (magenta is the default) or choose a unique color for heredoc strings

how do i make the Document Selector toolbar two rows high?

  1. right click on the Document Selector toolbar
  2. select “Options…” and set the “Number of rows” to 2

other configuration suggestions:

  • add “New Normal Text” button to standard toolbar
  • add “New HTML Page” button to standard toolbar
  • remove php3 as the primary file extension for php
  • download mysql syntax file
  • set mozilla to be the default browser under Tools > Preferences > Tools > Select Browser
  • read “Syntax Highlighting” under “Features” in help files (F1)
  • subscribe to the EditPlus Yahoo Group
· Tech