PSPad: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Reverted edits by 165.72.200.10 to last version by 84.148.119.210)
m (Protected "PSPad" ([edit=autoconfirmed] (expires 11:17, 20 October 2011 (UTC)) [move=autoconfirmed] (expires 11:17, 20 October 2011 (UTC))))
 
(12 intermediate revisions by 9 users not shown)
Line 4: Line 4:
* like highlighted syntax in code
* like highlighted syntax in code
* need a small tool with simple controls and the capabilities of a mighty code editor
* need a small tool with simple controls and the capabilities of a mighty code editor
* looking for a tool to work with plain text
* are looking for a tool to work with plain text
* want to save money and still have the functionality of professional products
* want to save money and still have the functionality of professional products


== Integrating with NSIS ==
== Integrating with NSIS ==
PSPad can integrate with [[NSIS]] perfectly with both syntax highlighting and compiling abilities.  To enable this, you must perform the following steps:
PSPad can integrate with NSIS perfectly with both syntax highlighting and compiling abilities.  To enable this, you must perform the following steps:
# In the menu, select Settings -> Highlighter Settings.
# In the menu, select Settings -> Highlighter Settings.
# Select a free "<not assigned>" item.
# Select a free "<not assigned>" item.
Line 20: Line 20:
# In LOG Parser, enter the following: ''Error in script "%F" on line %L*''
# In LOG Parser, enter the following: ''Error in script "%F" on line %L*''
# Hit OK.
# Hit OK.
# Now beable to open *.nsi files and see the NSIS syntax highlighting. You can also hit compile (CTRL-F9) and it will compile the application from PSPad itself, displaying the output in the Log window.  You can double click on errors to be taken to the error's line number.  When you don't know what a command means, highlight it, right click and select "Help for Language".
# PSPad should now be able to open *.nsi files and display NSIS syntax highlighting. You can also hit compile (CTRL-F9) and it will compile the application from PSPad itself, displaying the output in the Log window.  You can double click on errors to be taken to the error's line number.  When you don't know what a command means, highlight it, right click and select "Help for Language".
 
== NSIS Syntax Highlighter for PSPad ==
You can download the highlighter: <attach>Highlighter.zip</attach>.
Place it in your PSPad\Syntax folder.


== See also ==
== See also ==

Latest revision as of 11:17, 20 October 2010

Author: Rob Loach (talk, contrib)


PSPad with NSIS integration

PSPad editor is freeware programmer editor, usable for people who:

  • work with various programming environments
  • like highlighted syntax in code
  • need a small tool with simple controls and the capabilities of a mighty code editor
  • are looking for a tool to work with plain text
  • want to save money and still have the functionality of professional products

Integrating with NSIS

PSPad can integrate with NSIS perfectly with both syntax highlighting and compiling abilities. To enable this, you must perform the following steps:

  1. In the menu, select Settings -> Highlighter Settings.
  2. Select a free "<not assigned>" item.
  3. PSPad Compiler Settings
    Under "User Highlighters", select Nullsoft Install System.
  4. Under the "Specification" tab, set the Help File to NSIS.chm found in the NSIS directory.
  5. In the "Compiler" tab, set the compiler property to makensis.exe in the NSIS directory (you can browse for it).
  6. Set the Parameters property to "%File%", with the quotes.
  7. Check on Save All Files Before Compilation.
  8. Check on Capture Program Output Window.
  9. Check on Hide Output Window.
  10. In LOG Parser, enter the following: Error in script "%F" on line %L*
  11. Hit OK.
  12. PSPad should now be able to open *.nsi files and display NSIS syntax highlighting. You can also hit compile (CTRL-F9) and it will compile the application from PSPad itself, displaying the output in the Log window. You can double click on errors to be taken to the error's line number. When you don't know what a command means, highlight it, right click and select "Help for Language".

NSIS Syntax Highlighter for PSPad

You can download the highlighter: Highlighter.zip (2 KB). Place it in your PSPad\Syntax folder.

See also