{"id":117,"date":"2005-07-08T06:24:20","date_gmt":"2005-07-08T12:24:20","guid":{"rendered":"\/?p=117"},"modified":"2005-07-08T06:24:20","modified_gmt":"2005-07-08T12:24:20","slug":"tweaking-textpad-a-few-tips","status":"publish","type":"post","link":"https:\/\/www.codedread.com\/blog\/archives\/2005\/07\/08\/tweaking-textpad-a-few-tips\/","title":{"rendered":"Tweaking TextPad &#8211; A Few Tips"},"content":{"rendered":"<p>I've written about my love of <a href=\"http:\/\/www.textpad.com\/\" title=\"TextPad website\">TextPad<\/a> before <a href=\"http:\/\/blog.codedread.com\/archives\/2005\/01\/12\/share-the-love\/\">here<\/a>.  I just thought I'd post a couple quick tips about how to configure TextPad to view documents the way you like it.<!--more--><\/p>\n<ol>\n<li>\n<h3>Enabling Word Wrap by default<\/h3>\n<p>Click on Configure > Preferences.  Under \"Document Classes\" on the left, click the '+' button and then choose \"Default\".  You should see the default preferences for files show in the right-side of the pane.  Make sure \"Word wrap long lines\" is checked and hit \"Ok\".<\/p>\n<p>Now whenever you open a document, TextPad will automatically wrap long lines at the word boundaries.<\/p>\n<\/li>\n<li>\n<h3>Enabling Line Numbers by default<\/h3>\n<p>Click on Configure > Preferences.  On the left, click \"View\", you should see the various View Options on the right.  Make sure \"Line Numbers\" is checked and hit \"Ok\".<\/p>\n<p>Now every file that is opened will automatically show line numbers in grey on the left.<\/p>\n<\/li>\n<li>\n<h3>Adding A New Document Type<\/h3>\n<p>Let's say you want to add <span class=\"definition\" title=\"Scalable Vector Graphics\">SVG<\/span> as a new document type to TextPad so syntax highlighting for SVG elements and keywords will be present.<\/p>\n<ul>\n<li>First, ensure that SVG is not a recognized doc type within TextPad already:  Configure > Preferences and click the '+' beside \"Document Classes\" on the left.  If you have a XML doc type, select it and ensure that the *.SVG extension is not present in the \"Files in class XML\" section on the right.  Close all instances of TextPad<\/li>\n<li>Go <a href=\"http:\/\/www.textpad.com\/add-ons\/synn2t.html\">here<\/a> and scroll to \"Scalable Vector Graphics\".  Download the syntax zip file and unzip it into your TextPad system folder (mine is C:\\Program Files\\TextPad 4\\system).<\/li>\n<li>Start TextPad and go to Configure > New Document Class.  Type \"SVG\" for the Document class name.  Next, type \"*.svg\" for the Class memebers.  Next, check the box \"Enable syntax highlighting\" and choose the \"svg.syn\" file from the \"Syntax definition file\" pulldown box.  Next, click Finish.<\/li>\n<li>Open a SVG file in TextPad to verify that syntax highlighting is present.<\/li>\n<\/ul>\n<p>Optionally, you may also want to associate the TextPad program with the SVG file type (this is done via Windows, not by TextPad), but what's nice about TextPad is that it is always an option when you right-click a file in Windows (in Windows XP you may have to click Send To > TextPad).<\/p>\n<\/li>\n<\/ol>\n<div class=\"ads\"><object type=\"text\/html\" width=\"468\" height=\"60\" data=\"http:\/\/www.codedread.com\/gads.php\"><\/object><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve written about my love of TextPad before here. I just thought I&#8217;d post a couple quick tips about how to configure TextPad to view documents the way you like it.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,11,14],"tags":[],"class_list":["post-117","post","type-post","status-publish","format-standard","hentry","category-software","category-technology","category-tips"],"_links":{"self":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/comments?post=117"}],"version-history":[{"count":0,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts\/117\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/media?parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/categories?post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/tags?post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}