In the templates tab of the configuration dialog, is there a way to denote/enter a tab characters in the text that makes up a template?
Robert; I'm not sure if I understand what you are trying to do. I'm sure that you have found the TAB key just cycles thru the Dialog buttons. The vertical bar denotes where you want the cursor to return after printing the template. You can use this to space an entry after a title entry. It appears that you can have only one vertical bar. You can have more, the print routine just ignores all but the last vertical bar. For the Global templates ( all files), the set up is defined in ..\uV3\GLOBAL.ini. Other templates are set up in their respective .ini files such as C51.ini defines the for(|;;) template, etc. Make sure that you make copies of the .ini files if you plan to make any direct changes. Directly changing an .ini file is always suspect. Looking at these files hints that escape characters should work but I don't know. Bradford
Thanks. I was kinda wondering if I'd need to do direct manipulation of the template files. This is OK I guess as these aren't things that change that much. By "tab entry" in the template, I mean for the output to actually place a tab key in its text. I use tabs in my source rather than spaces. I tried typing up a header template (for example) using tabs for my alingment. I then copied it and pasted it in the text input area of the template editor. Now, while it did show the appearance of accepting the pasted tabs, they were no where to be found when I then tried to insert a header (via the template) into my document. Thus...I don't know what to do. Anyway, I'll check out the areas you suggested.
OK, I checked out the INI files. Lots of good info in them. Here's an example of default template section in the C51.INI file.
[Templates] Count=4 Template 0="for";"for(|;;)\r\n{\r\n}" Template 1="while";"while (|)\r\n{\r\n}" Template 2="continue";"continue;" Template 3="if";"if (|)" Enable=1
FYI, I added this as a feature request for uVision3. Jon
Thanks Jon !
I realize the requests could really get out of hand and pile up, but... Another one I might recommend is the ability to double-click the items in "references and definitions" list in the source browser to take you to the source for that item. Right now, you have to right-click and select from a single-choice context popup. Its a bit cumbersom. I think, however, I speak on behalf of many that the uV3 improvements are great. Please pass that on to the devel team.