Tabs to spaces not working within PHPDoc comments [message #27138] |
Sat, 09 June 2007 01:05 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02424 seconds