Closed Bug 521823 Opened 15 years ago Closed 14 years ago

Code commenting fails to display on page load, until start of comment appears

Categories

(Skywriter Graveyard :: Editor, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: p, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.221.8 Safari/532.2
Build Identifier: 0.44

A JavaScript file may have a comment block, such as:
/* a comment, over multiple lines */

These blocks are normally displayed in light grey in Bespin. However, if a JavaScript file is opened with the cursor near the bottom of the file, the comment will not be greyed out until the cursor scrolls up to the top of the comment block.

Presumably, this is also the case for comment blocks in HTML and languages other than JavaScript (though I haven't checked).

Reproducible: Always

Steps to Reproduce:
1. Create a long JavaScript file with a comment block that is higher than the screen height.
2. Move the cursor near to the bottom of the file and save the file.
3. Re-open the file and scroll upwards.
Actual Results:  
The comment block will appear in full-colour, as normal codea until the cursor reaches the top of the block. Then the comment will suddenly turn grey.

Expected Results:  
The comment block should be grey throughout.
Summary: JavaScript Code commenting fails to display on page load, until start of comment appears → Code commenting fails to display on page load, until start of comment appears
[Correction to "Steps to Reproduce"]:
Comment block doesn't need to be higher than the screen height.
Since this bug was filed, Bespin has gone through a reboot process wherein much code has changed. Since this bug was never confirmed, its existence may not have been verified.

I ask the original reporter, or anyone else familiar with the bug, to confirm whether the bug continue to exist in Bespin's code today.

You can pick up the latest code here:
http://mozillalabs.com/bespin/2010/02/20/bespin-embedded-0-6-1-syntax-highlighting-rebooted/

[This is a mass comment. To filter bugmail, use the term 'bespin-old-unconfirmed'.]
ACETRANSITION

The Skywriter project has merged with Ajax.org's Ace project (the full server part of which is their Cloud9 IDE project). Background on the change is here:

http://mozillalabs.com/skywriter/2011/01/18/mozilla-skywriter-has-been-merged-into-ace/

The bugs in the Skywriter product are not necessarily relevant for Ace and quite a bit of code has changed. For that reason, I'm closing all of these bugs. Problems that you have with Ace should be filed in the Ace issue tracker at GitHub:

https://github.com/ajaxorg/ace/issues
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.