Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Tabs to spaces not working within PHPDoc comments
Tabs to spaces not working within PHPDoc comments [message #27138] Sat, 09 June 2007 01:05 Go to next message
Eclipse UserFriend
Originally posted by: turonah.yahoo.com

So, I've got the tabs to spaces working in my PHP files, for both PHP
and HTML code. My problem starts when I try to PHPDoc my functions and
classes ... I hit tab, and a tab is inserted. Mildly annoying at worst,
until I find that it's hindering the functionality - that is, PHPDoc
seems to choke on the tab characters. Insert a space before them,
though, and there's no problems.

For example,

/**
* PHPDoc comment
*
* @param string $a Some string
* @return string
*/
function asd( $a ) { ... }

Now, tab characters between the "@param" and type are no problem, but
stick one between "$a" and the "Some string" description, and you can
see the type disappear from the Outline view. Put a space in front of
said tab, and the type reappears.

So my question is two-fold: 1) Can I fix the tabs to spaces problem? or
2) Can I fix the tabs-kill-PHPDoc problem?

Thanks in advance,
-- Reuben
Re: Tabs to spaces not working within PHPDoc comments [message #31092 is a reply to message #27138] Sat, 23 June 2007 12:20 Go to previous message
Eclipse UserFriend
Originally posted by: turonah.yahoo.com

Upgraded to Eclipse 3.2.100, along with PDT 1.0; Eclipse now has the
general "Insert spaces instead of tabs" which solves my problem.

-- Reuben

Reuben Bradley wrote:
> So, I've got the tabs to spaces working in my PHP files, for both PHP
> and HTML code. My problem starts when I try to PHPDoc my functions and
> classes ... I hit tab, and a tab is inserted. Mildly annoying at worst,
> until I find that it's hindering the functionality - that is, PHPDoc
> seems to choke on the tab characters. Insert a space before them,
> though, and there's no problems.
>
> For example,
>
> /**
> * PHPDoc comment
> *
> * @param string $a Some string
> * @return string
> */
> function asd( $a ) { ... }
>
> Now, tab characters between the "@param" and type are no problem, but
> stick one between "$a" and the "Some string" description, and you can
> see the type disappear from the Outline view. Put a space in front of
> said tab, and the type reappears.
>
> So my question is two-fold: 1) Can I fix the tabs to spaces problem? or
> 2) Can I fix the tabs-kill-PHPDoc problem?
>
> Thanks in advance,
> -- Reuben
Previous Topic:Xdebug plugin : disabling breakpoints
Next Topic:Impossible to install PDT using the Eclipse updater
Goto Forum:
  


Current Time: Wed Jan 22 19:16:28 GMT 2025

Powered by FUDForum. Page generated in 0.03438 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top