ShaneCunn / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

The use of c# generics does not work as expected #148

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
Use c# highlighter with this code
public class HelloWorldClient : ClientBase<IHelloWorldService>,
IHelloWorldService
{
   public string HelloWorld()
   {
      return Channel.HelloWorld();
   }
}
2. The use of generics does not work as expected. The <IHelloWorldService>
is formatted with lower case

What is the expected output? What do you see instead?
The interface IHelloWorld is lower cased when it should not be.

What version of the product are you using? On what operating system?
version 2.0.296 (March 01 2009)

Please provide any additional information below.

Original issue reported on code.google.com by lybec...@gmail.com on 8 Mar 2009 at 4:12

GoogleCodeExporter commented 8 years ago
Original Code:
--------------------------------------------
  private void LoadCodeSnippetsIntoGrid()
        {
            List<CodeSnippetData> codeSnippetslist = CodeSnippetDataManager.Instance.LoadCodeSnippetsFromUser(CurrentUser);
            gridCodeSnippets.DataSource = codeSnippetslist;
            gridCodeSnippets.DataBind();
        }
-------------------------------------------------
Rendered Code:
-------------------------------------------------
  private void LoadCodeSnippetsIntoGrid()
        {
            List<codesnippetdata> codeSnippetslist = CodeSnippetDataManager.Instance.LoadCodeSnippetsFromUser(CurrentUser);
            gridCodeSnippets.DataSource = codeSnippetslist;
            gridCodeSnippets.DataBind();
        }
</codesnippetdata>
-------------------------------------------------

Issue:

do you  see how 
            List<CodeSnippetData> codeSnippetslist = 
has been conver to
            List<codesnippetdata> codeSnippetslist = 

and a closing tag to the end of the code?

"</codesnippetdata>"

how to solve this?

Original comment by jesus.sa...@gmail.com on 15 Jul 2011 at 9:52

GoogleCodeExporter commented 8 years ago
I replace "<" and ">" with < and > does it work for you?

Original comment by sebastia...@gmail.com on 9 Aug 2012 at 1:30