Click here to Skip to main content
15,896,207 members

Bugs and Suggestions

   

General discussions, site bug reports and suggestions about the site.

For general questions check out the CodeProject FAQs. To report spam and abuse Head to the Spam and abuse watch. If you wish to report a bug privately, especially those related to security, please email webmaster@codeproject.com

 
GeneralAbility To View Message Source Text Pin
AspDotNetDev4-Nov-10 10:19
protectorAspDotNetDev4-Nov-10 10:19 
GeneralRe: Ability To View Message Source Text Pin
Chris Maunder4-Nov-10 19:22
cofounderChris Maunder4-Nov-10 19:22 
GeneralRe: Ability To View Message Source Text Pin
AspDotNetDev4-Nov-10 19:26
protectorAspDotNetDev4-Nov-10 19:26 
GeneralNot able to add "Google" tag to article. Pin
Kamyar4-Nov-10 9:48
Kamyar4-Nov-10 9:48 
GeneralRe: Not able to add "Google" tag to article. Pin
Chris Maunder4-Nov-10 19:23
cofounderChris Maunder4-Nov-10 19:23 
GeneralRe: Not able to add "Google" tag to article. Pin
Kamyar4-Nov-10 21:10
Kamyar4-Nov-10 21:10 
GeneralRe: Not able to add "Google" tag to article. Pin
Sean Ewington5-Nov-10 2:49
staffSean Ewington5-Nov-10 2:49 
GeneralXML PRE Tag Ends Code Early Pin
AspDotNetDev4-Nov-10 7:13
protectorAspDotNetDev4-Nov-10 7:13 
Take a look at the XSLT at the bottom of this page. When I paste it into a PRE block and set the LANG to XML, it gets cut off early:
XML
<xsl:stylesheet version='1.0' 
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
     xmlns:msxsl='urn:schemas-microsoft-com:xslt'
     xmlns:theScript='urn:CustomScript'>
  <xsl:output omit-xml-declaration='yes' method='text'
       media-type='text/plain' indent='no' />
  <xsl:variable name='displayme' />
 
  <msxsl:script implements-prefix='theScript' language='C#'>
  <![CDATA[
  public string HelloName(string name)
  {
    return "Hello " + name;
  }
  ]]>
  </msxsl:script>
  
  <xsl:template match='/'>
    <xsl:text disable-output-escaping='yes'>Print Integers > 3</xsl:text> 
    <xsl:apply-templates select='Root/Numbers' />
    Script Result: <xsl:value-of select='theScript:HelloName("Joe")' />
    Done: <xsl:value-of select='$displayme' />
  </xsl:template>
  
  <xsl:template match='Numbers'>
    Numbers:<xsl:apply-templates select='Integer[@value > 3]' />
  </xsl:template>
  
  <xsl:template match='Integer'>
    Integer: <xsl:value-of select='@value' />
  </xsl:template>
</xsl:stylesheet>

Now, if I use the same exact PRE block but set the LANG to TEXT, all the code shows up in full:
<xsl:stylesheet version='1.0' 
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
     xmlns:msxsl='urn:schemas-microsoft-com:xslt'
     xmlns:theScript='urn:CustomScript'>
  <xsl:output omit-xml-declaration='yes' method='text'
       media-type='text/plain' indent='no' />
  <xsl:variable name='displayme' />
 
  <msxsl:script implements-prefix='theScript' language='C#'>
  <![CDATA[
  public string HelloName(string name)
  {
    return "Hello " + name;
  }
  ]]>
  </msxsl:script>
  
  <xsl:template match='/'>
    <xsl:text disable-output-escaping='yes'>Print Integers > 3</xsl:text> 
    <xsl:apply-templates select='Root/Numbers' />
    Script Result: <xsl:value-of select='theScript:HelloName("Joe")' />
    Done: <xsl:value-of select='$displayme' />
  </xsl:template>
  
  <xsl:template match='Numbers'>
    Numbers:<xsl:apply-templates select='Integer[@value > 3]' />
  </xsl:template>
  
  <xsl:template match='Integer'>
    Integer: <xsl:value-of select='@value' />
  </xsl:template>
</xsl:stylesheet>

I think the XML formatter chokes on the Print Integers > 3 part. Remove that, and the world is happy again. However, that did mean I needed to tweak the example a bit when I was posting an answer here. Seems like the colorizer should not chop off code when it doesn't recognize it... it should just color it incorrectly (though, ideally, it would recognize the code correctly).

GeneralRe: XML PRE Tag Ends Code Early Pin
Luc Pattyn4-Nov-10 7:21
sitebuilderLuc Pattyn4-Nov-10 7:21 
GeneralRe: XML PRE Tag Ends Code Early Pin
AspDotNetDev4-Nov-10 7:59
protectorAspDotNetDev4-Nov-10 7:59 
GeneralRe: XML PRE Tag Ends Code Early Pin
AspDotNetDev4-Nov-10 8:00
protectorAspDotNetDev4-Nov-10 8:00 
GeneralRe: XML PRE Tag Ends Code Early Pin
Luc Pattyn4-Nov-10 8:15
sitebuilderLuc Pattyn4-Nov-10 8:15 
GeneralRe: XML PRE Tag Ends Code Early Pin
AspDotNetDev4-Nov-10 8:49
protectorAspDotNetDev4-Nov-10 8:49 
GeneralRe: XML PRE Tag Ends Code Early Pin
Luc Pattyn4-Nov-10 9:22
sitebuilderLuc Pattyn4-Nov-10 9:22 
GeneralRe: XML PRE Tag Ends Code Early Pin
AspDotNetDev4-Nov-10 10:21
protectorAspDotNetDev4-Nov-10 10:21 
GeneralRe: XML PRE Tag Ends Code Early Pin
Luc Pattyn4-Nov-10 10:43
sitebuilderLuc Pattyn4-Nov-10 10:43 
GeneralRe: XML PRE Tag Ends Code Early Pin
Chris Maunder4-Nov-10 19:16
cofounderChris Maunder4-Nov-10 19:16 
GeneralRe: XML PRE Tag Ends Code Early Pin
AspDotNetDev4-Nov-10 19:24
protectorAspDotNetDev4-Nov-10 19:24 
GeneralRe: XML PRE Tag Ends Code Early Pin
Chris Maunder4-Nov-10 19:26
cofounderChris Maunder4-Nov-10 19:26 
GeneralRe: XML PRE Tag Ends Code Early Pin
AspDotNetDev4-Nov-10 19:45
protectorAspDotNetDev4-Nov-10 19:45 
GeneralRe: XML PRE Tag Ends Code Early Pin
Chris Maunder4-Nov-10 19:25
cofounderChris Maunder4-Nov-10 19:25 
GeneralRe: XML PRE Tag Ends Code Early Pin
Luc Pattyn5-Nov-10 4:44
sitebuilderLuc Pattyn5-Nov-10 4:44 
GeneralRe: XML PRE Tag Ends Code Early Pin
Chris Maunder5-Nov-10 6:14
cofounderChris Maunder5-Nov-10 6:14 
GeneralRe: XML PRE Tag Ends Code Early Pin
Luc Pattyn5-Nov-10 6:19
sitebuilderLuc Pattyn5-Nov-10 6:19 
GeneralRe: XML PRE Tag Ends Code Early Pin
AspDotNetDev4-Nov-10 12:17
protectorAspDotNetDev4-Nov-10 12:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.