Huge Collections of Software Manuals and Knowledgebase

GreatManuals.com
Huge Collections of Software Manuals and Knowledgebase

 
Home Contact Us Request to publish your help manuals Request to remove your help manuals
User's Guide
» WeBuilder 2008
» Key Features
Working with Files
» Working with Files
» Create New File & HTML Document
» Create PHP Script & CSS Style Sheet
» Open Files
» Save & Publish File
» Linked Files Window
» File Explorer
Working with Projects
» Working with Projects
» Create New Project
» Select & Manage Existing Projects
» Publish Project to FTP
» Project Properties Window
» Publish Project Window
Searching & Navigating Text
» Search Text
» Find & Replace
» Using Regular Expressions
» Using Bookmarks
» Using Search Toolbar
» Go to Next or Previous Bracket
Editing...
» Editing Text
» Editing HTML and XHTML
» Editing Style Sheets
» Editing PHP Code
» Editing JavaScript Code
» Editing Scripts
» Code Editing Tools
Previewing...
» Preview HTML Document or PHP Pages
» Configuring PHP Preview
» Preview Style Sheets or Server Side Scripts
» Preview in Web Browser or Document Window
» Internal Preview
» Using Preview Toolbar
» Configure Web Browsers
Reusing Code
» Reusing Code
» Templates
» Library
» Code Templates
» Code Preprocessor
Customizing WebBuilder
» Customize Keyboard Shortcuts
» Change Interface Style
» Text Editor
» Toolbars & Panels
» Development Language Options
 

Code TemplatesCode Templates

Code templates are pieces of code that you can insert easily into your code by pressing only a few key strokes. Code templates are actually Code Snippets from the Library that have an assigned callword. A callword is an abbreviation you will be using to call a code template that is connected to it.

Inserting code templates

Inserting code templates is easy, it can be done in two ways:

  1. By using the shortcut key Ctrl+J which opens the code templates popup box and then selecting the code template.
  2. By typing the callword associated with the code template you want to insert and then pressing Ctrl+J which will replace the callword with the associated code template.

Note

cell phone data recovery free windows password recovery sd card data recovery
deleted photo recovery best data recovery software bulk sms
key drive data undelete restore usb drive usb drive data recovery
  • If you see no popup box after pressing Ctrl+J, it means that there are no snippets in the Library that have an assigned callword.
  • Over the time you might acumulate large amount of snippets. If you work with more than one programming language, it may be a good idea to group code templates by means of assigning common prefixes to the callwords. For example, a snippet in PHP that defines an if-else block, could be given a callword "phpife".

Create a code template

  1. On the Options menu click Library Editor.
  2. Select one of available folders or use New Folder or Subfolder button to create a new one.
  3. Click New Snippet.
  4. Snippet Editor appears. In the Name box, enter title for the snippet. Then enter snippet contents in text edit box(es).
  5. In the Name box, enter title for the snippet. Then enter snippet contents in text edit box(es).
  6. In the CallWord box, enter a unique callword for the code template. Only snippets having an assigned callword are treated as code templates.
  7. Click OK to save code snippet (template).
  8. Click Close to exit Library editor.
Home | Contact Us | Request to publish your help manuals | Request to remove your help manuals