Skip to content
⌘ NSIS Forum Archive

NSIS Workbench 1.00 release 4

40 posts

mkeeley#

NSIS Workbench 1.00 release 4

I've just uploaded release 4 which contains a few requested changes:

Auto-set the MakeNSIS.exe path on first run.
Allow the background colour of the script editor to be changed.
Britsh English spelling option in options screen.

Same URL:



Marc
Thor#
WOW !!! This is one slick nsi editor !!!
Keep up the good work !

I just told Justin about this personnaly 😛
mkeeley#
Thanks for that, glad you like it. I was quite pleased with the end result but it's always nice to hear from others.

Marc
mkeeley#
I'm looking at adding more options to the new project wizard over the weekend. Other than that, not sure yet. If anyone has any suggestions let me know.
eccles#
Yay! Thanks again for the changes... Lookin really good now!

Another possible idea - add to the Functions list (or in a separate list?) the directives (!ifdef, !packhdr, etc). Maybe split the functions into different sections? (InstDir, InstDirRegKey, etc in one section; CreateDirectory, File, etc in another, etc.)

I'm currently making my colour setup quite comprehensive. I know you've said before that you're not too keen on going overboard with the syntax highlighting, but maybe all the definitions could be set up, but with all the same colours by default.

I'll post my copy here when I've done anyway.

Cheers,

Dave Laundon.
mkeeley#
I was initially going to go for a categorised function list (tree view) but decided against it, it's sometimes quicker to scan down the functions than to remember/work out which category the command is in. After all there's not that many functions.

I'll add the !directives in the same way as I've added the $paths, so that you're presented with the different options if you double click on ! in the functions list or type !.

If you post your NSIS.SCH when you've customized it then I'll add that to my next release, thanks.

Marc
eccles#
OK, here ya go.

I've added a keywords section for all the different options/switches etc too (ifnewer, MB_ICONSTOP, nevershow etc). Thought I'd give it a try, but not sure if I'll keep it in mine or not yet. Probably be a pain to keep up to date :-)

Oh, and I've taken out all my colours (for use with a dark background) and set them to be more 'normal' again!

Dave.
eccles#
Another quick idea -

When doing a Ctrl-Q QuickInfo, make the Help tab visible if the Compiler Output is currently hiding it?

Ta 🙂

Dave.
mkeeley#
I've incorporated the suggestions and added a few other bits. Here's a list of changes so you can decide if you want to download it.

1. The "Completed" text can now be specified in the new project wizard.
2. The text on the "Show Details" button can now be set in the new project wizard.
3. ! directives have been added to the function list. Double clicking on the ! in the functions list now displays a pick list of available directives. Alternately you can type !. in the script window
4. If the Compiler Output is currently being displayed and you select Quick Help the help page is now displayed.
5. The functions from functions.htm have been added to the code snippets.
6. Code templates !if (expands to !if !endif) and !ife (expands to !if !else !endif) have been added.
7. Code snippets are now inserted so that they only require one Undo to remove them, previously you had to do an Undo for each line of the code snippet.
8. Undo toolbar button and menu item now become disabled when there is no more to undo.
9. The first function per letter in the function list is now highlighted in bold by default. This can turned off via the options screen.
10. Added incremental function search edit box above function list. Once the required function has been found it can be inserted in to the script editor by pressing Enter. Pressing Esc clears the entry, it is also automatically cleared when it receives focus (is entered). It's keyboard shortcut is Ctrl+1.

Available from the usual URL

Marc
mkeeley#
Must have forgot to copy the new functions table over to my release folder. It's attached.

Marc
eccles#
Ta for that.

I've been playing about with an NSIS script to parse out and list all the NSIS function names from the source code so that they can be 'Load'ed into NSIS Workbench's syntax highlighter. Thought it might be handy for keeping things up to date when NSIS changes!

NSIS is one powerful piece of kit! 🙂

Dave Laundon.
mkeeley#
If you're syntax highlighting then you really need to turn the Strings scheme on, even if you leave the font as black. Otherwise keywords or ;'s within strings get highlighted which isn't really what you want. Apart from the currently defined " you obviously should also set up ' and `

Marc
Thor#
Tip : wouldn't it be a lot better to have thel ine numbers in de gray zone instead of in the white typing zone ...
Would be al ot better that way...
mkeeley#
Don't know what you're talking about the line numbers are in the editors gutter where you'd expect them to be, not going to change.
dTomoyo#edited
Hello, mkeeley.

Exellent program for NSIS script dev.!!!

but...

(1) I want to support 2-bytes Asia language input.

currently, indirect input of Korean characters.


(2) Add option for end of line marker & end of file marker.

currently, do not show eof, eol marker on text area.

add 'View' of menu tab.

v End of line
v End of file

eof mark (like *** End of File ***)
eol mark (user defined char.)


(3) I want command line file open with FNSIS. 🙂
run

fnsis.exe "example.nsi"

Fnsis don't start with "example.nsi".


(4) add bookmark function.

F9 : Toggle marker current line.
Ctrl+Shift+F9 : Clear all markers.
F4 : Goto Next marker.
Shift+F4 : Goto Previous marker.

Shift+F3 : Find Previous


peace...🙂
mkeeley#
dTomoyo,

Not sure about 2 byte characters I'll have to investigate.

Don't know what you mean by end of line/eof markers, end of line is CR/LF could you explain some more.

I'll have a look at adding it to the context menu.

--------------------------

Thor,

The line numbers won't be moving from where they are or changing their look as they're taken care of by the memo control. The only thing that can be altered is the gutters background colour (and probably the line number font) or turning them off completely. Sorry.
Thor#
Originally posted by mkeeley
Thor,

The line numbers won't be moving from where they are or changing their look as they're taken care of by the memo control. The only thing that can be altered is the gutters background colour (and probably the line number font) or turning them off completely. Sorry.
Oh ic...
Well what I meaded was this :

It would be nicier if the numbers where in gray zone ...
But if that's impossible it's ok 🙂
mkeeley#
Don't know how you got them to display there, can't get them to here, they do normally display in the grey zone (gutter).

Anyone else have them displayed outside the gutter?
Thor#
Weird 😛
I use WinXP Prof, if that info can be of any help...

Btw, what language is this coded in?
eccles#
Originally posted by mkeeley
Anyone else have them displayed outside the gutter?
Yes. Didn't think anything of it though until now.

Here's mine (Win2000 prof. sp2)



Dave.
mkeeley#
I'm also running XP, I'm thinking that perhaps the memo control is using the registry to save settings, although they don't mention that in the documentation.

I've uploaded a replacement .EXE that hard codes the property that places the line numbers in the gutter in case it is indeed being overwritten at run-time, see if that helps.



It's coded in Delphi

Marc