• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7638: Java Generics' Type Parameters are treated as XML tags in code snippets (transformed into lower case and closed) using PRE elements

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension DpSyntaxHighlighterPlugin Normal New      

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

We use the DpSyntaxHighlighterPlugin. When we paste a code snippet into a PRE tag, Generic Type information is treated as an XML tag, turned into lower case, and closed.

(Arguably, that's to be expected, as we are using < instead of &lt;, but I'd argue it should then be interpreted as XML by the browser and - due to the pointy brackets - not be displayed.)

Please examine the following code snippet in RAW View (as textarea will convert certain HTML tags) and compare to the screenshot below:

-- TWiki:Main/ChristianBalzer - 2015-04-09

  • Java's Generic type gets treated as an XML tag in a code snippet using PRE - it is turned into lower case letters and closed:
    twiki-xml-interpreted.png

ItemTemplate
Summary Java Generics' Type Parameters are treated as XML tags in code snippets (transformed into lower case and closed) using PRE elements
ReportedBy TWiki:Main.ChristianBalzer
Codebase 6.0.0
SVN Range TWiki-6.0.1-trunk, Fri, 03 Apr 2015, build 28925
AppliesTo Extension
Component DpSyntaxHighlighterPlugin
Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease

ReleasedIn

Topic revision: r1 - 2015-04-09 - ChristianBalzer
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback