Announcement

Collapse
No announcement yet.

PB template - How to ???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • John Montenigro
    replied
    Played with the examples and customized... Thanks, Gary, good web reference!

    Leave a comment:


  • Gary Beene
    replied
    Here's a page out of my online PowerBASIC tutorial that covers the topic.

    http://www.garybeene.com/power/pb-tutor-templates.htm

    It also give some useful examples, plus gives some tips on ordering them the way you want them to appear.

    Leave a comment:


  • Hedley Moses
    replied
    Thanks guys I'll give it a shot

    Leave a comment:


  • Jeff Blakeney
    replied
    You just need to create a file with an .pbtpl extension and save it in the PBWin90/bin directory and restart the editor.

    The template file consists of the following:
    • Line 1 is the template version number (currently 1).
    • Line 2 is the extension to give to files created with this template (ie. .bas).
    • Line 3 is the text to display in the toolbar drop down for the New icon or in the sub menu of the File/File New As... menu (ie. My Default Program).
    • Everything else is the default contents of the file. You can tell the editor where to put the caret initially by putting a | character where you want it to be.

    If you bring up the PBWin help file, go to the index and type "templates", the entry on File Templates should be highlighted and pressing enter will display all this help for you.

    Leave a comment:


  • Scott Slater
    replied
    YourTemplateFileName.pbtpl placed into the BIN folder.

    Leave a comment:


  • Hedley Moses
    started a topic PB template - How to ???

    PB template - How to ???

    Hi

    I have a question around the PB templates. PB ships with 4 standard temples (Generic PB template, DLL template etc) How do I save my own template so that it will appear in dropdown for the "Create New" in the IDE. I've looked in the PB folders hoping there was a spot where templates can just be popped into but can't see anything

    Thanks
Working...
X