CodeSmith Community
Your Code. Your Way. Faster!

Syntax highlighting doesn't seem to handle CS blocks properly within angle brackets when TargetLanguage is not "Text"

Latest post 07-11-2008 2:01 PM by blake05. 1 replies.
  • 07-04-2008 12:19 AM

    Syntax highlighting doesn't seem to handle CS blocks properly within angle brackets when TargetLanguage is not "Text"

     When TargetLanguage is set to C#, the syntax highlighter in CodeSmith Studio fails to properly highlight CodeSmith blocks when they are nested within angle brackets.

     Here is an example that paints incorrectly in a C# class xml comment:

        /// <summary>
        /// This is a description of the <see cref="<%= ClassName %>" /> class.
        /// </summary>

    And here is a generic declaration that also fails to paint correctly:

        public class <%= ClassName %><<%= GenericParamName %>>()

    The "<%" and "%>" markers are not turning yellow, and the entire block text keeps the color of the first bracket.

    Regards,
    LG

    • Post Points: 35
  • 07-11-2008 2:01 PM In reply to

    • blake05
    • Top 25 Contributor
    • Joined on 04-03-2008
    • Wisconsin
    • Posts 351
    • Points 6,205

    Re: Syntax highlighting doesn't seem to handle CS blocks properly within angle brackets when TargetLanguage is not "Text"

    Hello,

    I have filed this as a bug, and will update this post when more information is avaiable.

    Thanks

    -Blake Niemyjski 

    Blake Niemyjski

    CodeSmith Tools, LLC Support Specialist

    Blog: http://windowscoding.com/blogs/blake/

    ----------------------------------------------------------------------
     Member of the .NetTiers team | Visit http://www.nettiers.com
    ----------------------------------------------------------------------

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