This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

uVision3. Putting tabs in templates?

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?

Parents
  • 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
    
    Notice the familiar escape sequences for CR/LF? Hmmmm, I thought, so I tried \t. Nothing doing. Doesn't put anything in.

    Oh well. I guess I can use spaces and just live with it.

Reply
  • 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
    
    Notice the familiar escape sequences for CR/LF? Hmmmm, I thought, so I tried \t. Nothing doing. Doesn't put anything in.

    Oh well. I guess I can use spaces and just live with it.

Children