PureTemplate [Archived source collection viewer]

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

PureTemplate [Archived source collection viewer]

Post by gnozal »

PureTemplate (OCT 7th 2009) (Can be used without jaPBe too)

Yet another code viewer (usable as jaPBe plugin).

I like source code templates stored in zip files, not in multiple directories / files.
This tool allows to view / seach / compile-run source code in such (zip) archives.
It can also be used as alternative CodeArchiv viewer (without need to decompress the archiv).

Download : http://gnozal.ucoz.com/PureTemplate.zip
Last edited by gnozal on Tue Sep 16, 2008 7:47 am, edited 9 times in total.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Very nice utility! Thank you Gnozal!
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

thanks, very nice

with codearchiv.zip i have a problem, will not open the sources in the scintilla window :cry:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

ts-soft wrote:thanks, very nice

with codearchiv.zip i have a problem, will not open the sources in the scintilla window :cry:
You are right :oops:
I only tested my tool with archives created using TotalCMD, not with the original archive.
I will fix this.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Can you add a function to uncomment testcode, with special commenttag?
Only for the run-button
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

It should now work with all ZIP archives ...
ts-soft wrote:Can you add a function to uncomment testcode, with special commenttag? Only for the run-button
Sorry, I don't understand what you mean.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Before run parse the code for special commenttag like ;; or ;@ and remove
this on the fly, so you can test the template. And a copyfunction, that doesn't
copy this commented lines :wink:

i hope you can understand my bad english
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

ts-soft wrote:Before run parse the code for special commenttag like ;; or ;@ and remove this on the fly, so you can test the template. And a copyfunction, that doesn't
copy this commented lines :wink:
i hope you can understand my bad english
I understand, but why would you want to remove comments before compile/run? These have by definition no influence on the code.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

I have a Fatal Error : Could not find or initialise SyntaxHighlighting.dll
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Droopy wrote:I have a Fatal Error : Could not find or initialise SyntaxHighlighting.dll
This tool needs 2 DLL : SyntaxHighlighting.dll and Scintilla.dll
- Scintilla.dll is usually in %PBDIR%\Compilers\ if PB >= 4.00
- SyntaxHighlighting.dll is usually in %PBDIR%\Library SDK\Syntax Highlighting\ if PB >= 4.00
If the tool doesn't find them, simply copy the DLLs in the tool directory.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Code: Select all

Procedure Foo()
  ProcedureReturn bla
EndProcedure


;;; example
;; Debug Foo()
only the procedure is interessting, but for testing only uncomment
the example with special tag ";;" on the fly, before running
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

gnozal wrote:This tool needs 2 DLL : SyntaxHighlighting.dll and Scintilla.dll
- Scintilla.dll is usually in %PBDIR%\Compilers\ if PB >= 4.00
- SyntaxHighlighting.dll is usually in %PBDIR%\Library SDK\Syntax Highlighting\ if PB >= 4.00
If the tool doesn't find them, simply copy the DLLs in the tool directory.
Thanks a lot
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

- Added new option : remove special tags ';;' and ';@' before compile / run
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

:D thanks
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

- Fixed an archive parsing bug
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply