Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3458734
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:01:13+00:00 2026-05-18T10:01:13+00:00

where i can change this stupid formatting, i look at all options in Editor/Format

  • 0

where i can change this stupid formatting, i look at all options in Editor/Format but didn’t find anything useful!
When i just wrote comment block:
alt text

and when i press SHIFT+ALT+F or Source/Format in menu comment block is crashed, and all beauty of phpDoc comment is destroyed 🙁

alt text

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T10:01:14+00:00Added an answer on May 18, 2026 at 10:01 am

    Because you are trying to put a phpDoc block in the middle of code, I believe that NetBeans is giving you some combination of Initial Indentation and Continuation Indentation (found in Tools|Options|Editor|Formatting where Language = PHP and Category = Tabs and Indents).

    The real problem is that docblock comments are not found within the flow of the code. Have a look at the phpDocumentor manual page on documentable elements. Docblock comments need to go in very specific places, e.g., before functions, before class definitions, before define statements, etc.

    In your case, assuming that the try-catch block is within a function, then the @todo would go in the docblock that appears just before the function.

    Alternatively, you could switch to the “one-line” comment style, e.g.

    // @todo - Fix something with the next line
    

    but that would not get picked up in phpDoc. (In fact, in your example with the docblock in the flow of the code, I’m not so sure that phpDocumentor would pick that up either.) In addition, it would be indented at least one level in from the try statement, since it appears within the block.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This maybe a stupid question, but as I can not easily undo my change
This may be a stupid questions but I can't find it. I'd like to
Im killing the process in the port 4444, but this can change, i have
I know this is a stupid question but i can't get my desired out
might be a stupid simple solution but I can't seem to find what's wrong
This is a stupid simple question, but ive been staring at it all night
can any one tell me how can change this java code into objective c.is
I can set data in JTable constructor, and then user can change this data
(r'^/(?P<the_param>[a-zA-z0-9_-]+)/$','myproject.myapp.views.myview'), How can I change this so that the_param accepts a URL(encoded) as a
You can change the connection string at run-time like this. You make the connection

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.