in

CodeSmith Community

Your Code. Your Way. Faster!

Custom merge regions

Last post 04-11-2008 2:26 AM by carl-petter. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-10-2008 8:39 AM

    Custom merge regions

    I have been using a custom merge region specification looking like this:

       <languageRegionDefinitions>
          <languageKeyList>
            <key>as3</key>
            <key>as</key>
            <key>actionscript</key>
          </languageKeyList>
          <regionStartRegex>^[ \t]*//region(?:[ \t]+(?&lt;name&gt;[^\r\n]*))?\r?\n</regionStartRegex>
          <regionEndRegex>^[ \t]*//endregion.*\r?\n</regionEndRegex>
        </languageRegionDefinitions>

    Defined in the file "C:\Users\carl-petter\AppData\Roaming\CodeSmith\v4.1\CodeSmithEngine.config"

    It's worked great and works for my workmate too. We both use Vista.

    Now a third and fourth workmate, both using XP, joined the project and they added the same to their respective config file at: 

    C:\Documents and Settings\[username]\Application Data\Codesmith\v4.1\CodesmithEngine.config

    ..and it doesn't preserve the custom regions when they do code generation.

    Any clues what might be wrong? 

     

    Filed under: , ,
    • Post Points: 35
  • 04-10-2008 11:39 AM In reply to

    • blake05
    • Top 25 Contributor
    • Joined on 04-03-2008
    • Wisconsin
    • Posts 166
    • Points 2,790

    Re: Custom merge regions

    Hello,

    Did the third and fourth workmates that are using XP, install CodeSmith standard by any chance? This feature is only available in the professional edition of CodeSmith. I ask this as there shouldn’t be any differences in merging when using CodeSmith on different operating systems.

    Thanks

    -Blake Niemyjski

    Blake Niemyjski
    CodeSmith Tools, LLC
    Support Specialist
    • Post Points: 35
  • 04-11-2008 2:26 AM In reply to

    Re: Custom merge regions

    Answer

    Thanks for the answer.

    Nah, they had professional editions.

    Turns out the wiki where I had copy/pasted the instructions how to setup custom merge region definitions had mangled the regexp, so the fault was on our end.

    Cheers.

     

    • Post Points: 5
Page 1 of 1 (3 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems