Results 1 to 4 of 4
  1. #1
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,937
    Rep Power
    20

    Default Code formatting bug

    If a comment is wrapped by /* ... */ (block comment) it is rendered in blue and the succeeding lines have the same color until there is a /** ... */ doc comment. Otherwise, doc comments are rendered in gray. Sample that should show up the bug:
    Java Code:
    Normal line
    // inline comment
    /**
     * Doc comment
     */
    Another normal line
    /* block comment -- single line or multiline, doens't make a difference */
    These lines
    will be rendered
    like the block comment
    // another inline comment
    /**
     * A doc comment
     * lines after the closing
     * of this comment will be
     * rendered sanely
     */
    more code lines
    yet more
    // another inline comment
    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,048
    Blog Entries
    7
    Rep Power
    23

    Default Re: Code formatting bug

    What I find even clumsier is, if you try to copy and paste the code it ends up as one single line ... nasty ...

    kind regards,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,937
    Rep Power
    20

    Default Re: Code formatting bug

    I haven't had that happen, neither with pasting into Notepad nor NetBeans.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,048
    Blog Entries
    7
    Rep Power
    23

    Default Re: Code formatting bug

    Quote Originally Posted by DarrylBurke View Post
    I haven't had that happen, neither with pasting into Notepad nor NetBeans.
    I tried with vi and an Eclipse editor; both pasted your code (see above) as a single long line.

    kind regards,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

Similar Threads

  1. lines truncated in code formatting
    By zweibieren in forum Suggestions & Feedback
    Replies: 6
    Last Post: 12-19-2011, 07:13 PM
  2. Code formatting Issue
    By camickr in forum Suggestions & Feedback
    Replies: 21
    Last Post: 10-08-2011, 04:19 PM
  3. Formatting Java Code
    By DoubleDee in forum Advanced Java
    Replies: 5
    Last Post: 09-18-2010, 10:33 PM
  4. Need help formatting output and some code
    By A5i19 in forum New To Java
    Replies: 6
    Last Post: 11-09-2009, 05:58 AM
  5. formatting..
    By sireesha in forum New To Java
    Replies: 16
    Last Post: 06-26-2009, 07:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •