File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ranch Office and the fly likes whats that Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "whats that "#" in [code] tags ?" Watch "whats that "#" in [code] tags ?" New topic
Author

whats that "#" in [code] tags ?

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

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.

My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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".


[Jess in Action][AskingGoodQuestions]
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

I think this wasn't there a month ago...
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

hmmm
 
 
subject: whats that "#" in [code] tags ?
 
Similar Threads
Java file is compiling but not running.
pass by value
can main be declaired final ? why
for loop with one parameter
For Rahul Mahindrakar