For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the
Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in
General Usage or an appropriate sub-forum.
-
Jane
- Site Admin
- Posts: 8440
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
-
Contact:
Post
by Jane » 08 Feb 2013 19:06
If any one uses PSPad the latest version support the code explorer on Lua scripts so you can get views like this of plugin source:
You can download the latest version from:
http://www.pspad.com/en/download.php
ID:6748
-
tatewise
- Megastar
- Posts: 27075
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
-
Contact:
Post
by tatewise » 08 Feb 2013 22:19
To get it to work the Highlighter for Lua must be invoked as follows:
Use Settings > Highlighters Settings
Select a box on the left.
On Specification tab User Highlighters on right select Lua and click OK.
Files must have file extension .lua and may need to use Tools > Code Explorer window to enable tools.
-
Jane
- Site Admin
- Posts: 8440
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
-
Contact:
Post
by Jane » 08 Feb 2013 22:42
You can add. fh_lua to lua in the settings so it works directly with plugin files
-
tatewise
- Megastar
- Posts: 27075
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
-
Contact:
Post
by tatewise » 09 Feb 2013 10:29
The procedure in PSPad is:
In an Administrator account open PSPad.
Use Settings> User Highlighter and Load the Lua.INI file.
In File Types, Comma Delimited at the top add ,*.fh_lua and click Save.
You may need to re-apply the Settings > Highlighters Settings as above to get the change to take effect.
I will add these guidance notes to the FHUG Downloads for PSPad.
-
justone
- Diamond
- Posts: 82
- Joined: 05 Mar 2006 14:42
- Family Historian: None
Post
by justone » 13 Feb 2013 19:30
Didn't want to start a new topic, but I found PSPad not much worth it.
It got 99% things unneeded but misses something essential such as inbuilt debugging facilities or at least a LuaShell so one could try something before finalising a line of code after one worked out if it does what one expects.
At the moment my personal favourite is the wxLuaEdit from the wxLua distribution. It's neary as simply as the internal editor FH offers (first view) but surprised me with it's stack capabilities and offers syntax highlighting.
2 drawbacks which set it down a bit.
If you add fh api keywords to the highlighter and press Apply ... don't forget to save the settings before quitting the program. Since otherwise you'll have the experience to see if you're faster when doing the same job the second time.
And for Win7 users, the open file selector can't reach for hidden folders (c:programdataCalico PiePlugin) so you either have to do to 'subst' (you remember that from when you were young do you? MS DOS 3.1 feature, or find any other way you might know youself.
But while at editors ...
Why do all the dlls within the FH program not follow the original namings? iuplua.dll is named iuplua51.dll, same for iuplua_pplot(51) and some others.
Since to prevent version conflicts I found that it's anything but clever to install a complete lua dll system besides the one from within FH, since then one might have working code but not working within FH.
-
Jane
- Site Admin
- Posts: 8440
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
-
Contact:
Post
by Jane » 13 Feb 2013 19:53
Why do all the dlls within the FH program not follow the original namings?
I think you will find this is the correct us of the Lua level in the dll name.
PIL and the Lua Reference manual cover this in detail