Bug 258878 - Formatting not working in HTML pages
Summary: Formatting not working in HTML pages
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.0.5   Edit
Assignee: Chris Jaun CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-12-15 17:56 EST by Chris Jaun CLA
Modified: 2010-03-03 11:12 EST (History)
1 user (show)

See Also:
thatnitind: review+


Attachments
Adds code formatting to the HTML editor of JS (11.49 KB, patch)
2009-03-26 14:41 EDT, Chris Jaun CLA
thatnitind: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Jaun CLA 2008-12-15 17:56:33 EST
Build ID: I20081211-1908

Steps To Reproduce:
Enter this code inside a script tag on an HTML page...

function 		square(x) {




	return x*x;
}

var square2 = 				function(x) {
	return x*x;
};

var result1 = square(5);

var result2 = square2(3, 4);

if(result1 > 16) {



	
	document.write("Greater than:" + result1);
}

if(result2 == 		9) 		{
	document.write("I am " + result2);
}

Format it. Nothing happens.

The same code formats correctly inside a JSP page and a JS file.
Comment 1 Chris Jaun CLA 2009-03-26 14:41:06 EDT
Created attachment 130001 [details]
Adds code formatting to the HTML editor of JS
Comment 2 Chris Jaun CLA 2009-03-26 14:43:55 EDT
Does some source viewer configuration clean up.

- Adds the configuration for HTML content types
- Directly declares content assist and hover help in plugin.xml.
- Also happens to fix some JSP content assist problems as a side effect - reducing the number of duplicate choices presented to the user from 3 to 2.
Comment 3 Chris Jaun CLA 2009-03-26 14:45:43 EDT
No UI or API changes...should go into 3.0.5 and 3.1.
Comment 4 Nitin Dahyabhai CLA 2009-04-13 22:49:19 EDT
Released to 3.0.5 and 3.1m7