{"id":505,"date":"2018-12-29T15:02:53","date_gmt":"2018-12-29T15:02:53","guid":{"rendered":"http:\/\/jlavelle.uk\/pfw\/?page_id=505"},"modified":"2018-12-29T15:02:53","modified_gmt":"2018-12-29T15:02:53","slug":"netbeans-101-editor-options-code-templates","status":"publish","type":"page","link":"https:\/\/jlavelle.uk\/pfw\/netbeans-ide\/netbeans-101\/netbeans-101-options\/netbeans-101-editor-options-code-templates\/","title":{"rendered":"NetBeans 101 \u2013 Editor Options: Code Templates"},"content":{"rendered":"\n\t\t\t\t\n<p>This NetBeans 101 &#8211; Options &#8211; Editor (Code templates) video looks at the Code Templates in NetBeans. How To use them and How to create them. The code to recreate the Templates is also available below.<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"NETBEANS 101 - OPTIONS - EDITOR (CODE TEMPLATES) - Programming for the Web\" width=\"525\" height=\"295\" src=\"https:\/\/www.youtube.com\/embed\/yaqrfJ3XkKI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p style=\"font-size:8px\">Advertisement<\/p>\n<p style=\"margin:auto !important\" align=center><a target=\"_blank\"  href=\"https:\/\/www.amazon.com\/gp\/product\/B012GGB7NY\/ref=as_li_tl?ie=UTF8&#038;camp=1789&#038;creative=9325&#038;creativeASIN=B012GGB7NY&#038;linkCode=as2&#038;tag=jlavelleus-20&#038;linkId=0356bcb6721db63f8e26571777f3cfc4\" rel=\"noopener noreferrer\"><img decoding=\"async\" border=\"0\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&#038;MarketPlace=US&#038;ASIN=B012GGB7NY&#038;ServiceVersion=20070822&#038;ID=AsinImage&#038;WS=1&#038;Format=_SL250_&#038;tag=jlavelleus-20\" ><\/a><img loading=\"lazy\" decoding=\"async\" src=\"\/\/ir-na.amazon-adsystem.com\/e\/ir?t=jlavelleus-20&#038;l=am2&#038;o=1&#038;a=B012GGB7NY\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/><\/p>\n\n\n\n<p><br>PHP Header Comment:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/*\n* ------------------------------\n* ${Comment_Heading}\n* @author: ${user}\n* ------------------------------${cursor}\n*\/<\/code><\/pre>\n\n\n\n<p style=\"font-size:8px\">Advertisement<\/p>\n<script async=\"\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<!-- JLavelle.UK -->\n<ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-2859677993068086\" data-ad-slot=\"2807034155\" data-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script>\n(adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<p><br>HTML Page Template:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!doctype html>\n&lt;html lang='${LANG newVarName default=\"en-GB\"}'>\n  &lt;head>\n    &lt;meta charset=\"UTF-8\">\n    &lt;meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    &lt;!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->\n    &lt;title>${TITLE newVarName default=\"Home Page\"}&lt;\/title>\n    &lt;meta name=\"description\" content=\"${TITLE}\">\n    &lt;meta name=\"keywords\" content=\"${TITLE}\">\n    &lt;meta name=\"author\" content='${AUTHOR newVarName default=\"John Lavelle\"}'>\n    &lt;link rel=\"stylesheet\" type=\"text\/css\" href='${STYLE newVarName default=\"styles\/style.css\"}' media='screen'>\n  &lt;\/head>\n  &lt;body>\n    ${cursor}@TODO write content\n  &lt;\/body>\n&lt;\/html>\n&lt;!--\n${TITLE} ${COPYRIGHT newVarName default=\"Copyright \u00a92018 JLavelle.uk\" editable=false} all rights reserved.\nNo part of this site may be reproduced without prior permission.\nhttp:\/\/jlavelle.uk\n--><\/code><\/pre>\n\n\n\n<p style=\"font-size:8px\">Advertisement<\/p>\n<script async=\"\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<!-- JLavelle.UK -->\n<ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-2859677993068086\" data-ad-slot=\"2807034155\" data-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script>\n(adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<p><br>PHP MySQL Connection:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$$${CONLINK newVarName default=\"link\"} = mysql_connect('localhost', 'mysql_user', 'mysql_password');  \nif (!$$${CONLINK}) {\n      die('Could not connect: ' . mysql_error());  \n}  \necho 'Connected successfully';  \nmysql_close($$${CONLINK});  \n${cursor}<\/code><\/pre>\n\n\n\n<p style=\"font-size:8px\">Advertisement<\/p>\n<script async=\"\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<!-- JLavelle.UK -->\n<ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-2859677993068086\" data-ad-slot=\"2807034155\" data-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script>\n(adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\t\t","protected":false},"excerpt":{"rendered":"<p>This NetBeans 101 &#8211; Options &#8211; Editor (Code templates) video looks at the Code Templates in NetBeans. How To use them and How to create them. The code to recreate the Templates is also available below. Advertisement PHP Header Comment: Advertisement HTML Page Template: Advertisement PHP MySQL Connection: Advertisement<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":411,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-505","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/jlavelle.uk\/pfw\/wp-json\/wp\/v2\/pages\/505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jlavelle.uk\/pfw\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/jlavelle.uk\/pfw\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/jlavelle.uk\/pfw\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jlavelle.uk\/pfw\/wp-json\/wp\/v2\/comments?post=505"}],"version-history":[{"count":0,"href":"https:\/\/jlavelle.uk\/pfw\/wp-json\/wp\/v2\/pages\/505\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/jlavelle.uk\/pfw\/wp-json\/wp\/v2\/pages\/411"}],"wp:attachment":[{"href":"https:\/\/jlavelle.uk\/pfw\/wp-json\/wp\/v2\/media?parent=505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}