Results 1 to 4 of 4
  1. #1
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    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
    13,309
    Blog Entries
    7
    Rep Power
    20

    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
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    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
    13,309
    Blog Entries
    7
    Rep Power
    20

    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
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. lines truncated in code formatting
    By zweibieren in forum Suggestions & Feedback
    Replies: 6
    Last Post: 12-19-2011, 06: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, 04: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
  •