Invisible characters error
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 15
### What happened
I got an error copying this code into Netbeans:



Opening it in Visual Studio Code, the code contains **No-Break Spaces**.

Messages and highlighting invisible characters in Netbeans does not help to understand this error
### How to reproduce
- Go to https://www.php.net/manual/en/language.generators.syntax.php,
- Go to section **yield from with iterator_to_array()**,
- Copy the sample code to a php file in Netbeans.
Or copy the code:
```php
Contributor guide
Research direction
No source file or test is named. Start by reproducing the PHP sample in the NetBeans editor using the documented no-break spaces, then inspect how the editor reports and highlights these characters. Done means the copied sample produces an understandable diagnostic or highlighting that identifies the offending characters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100