Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

whats that "#" in [code] tags ?

 
salvin francis
Bartender
Posts: 1280
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have observed this quite often now:

suppose you copy code:



you get this :

# public static void main (String args[])
# {
# System.out.println("Hello world");
# }


is this to dither people from copying code ??
cause it isn't much difficult for someone to copy it using [view plain]

also its really irritating for someone to copy code snippets.

If i am not wrong, this functionality was not initially there.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't like it either, truth be told, but I have never looked into whether there might be a way to remove it. It's related to the how the line numbers are rendered, and I like those very much, and wouldn't want to do without them.

In any case, yes, if you want to copy code, use "view plain".
 
salvin francis
Bartender
Posts: 1280
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this wasn't there a month ago...
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
salvin francis wrote:I think this wasn't there a month ago...


No, it's been this way ever since we migrated to JForum, precisely a year ago.
 
salvin francis
Bartender
Posts: 1280
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmmm
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic