Java Reference
In-Depth Information
Syntax highlighting
Syntax highlighting for web content files works exactly as it does in Java and JSP
files. IDEA starts with reasonable defaults, but you can customize them easily
through the Colors & Fonts settings panel, as shown in figure 11.24. All file
types inherit the basic settings specified in the General tab, and HTML and CSS
have their own tabs allowing you to further customize file type-specific syntax.
JavaScript doesn't have its own tab under Colors & Fonts; but it inherits any
appropriate defaults from the Java settings, such as the color of String literals or
numeric constants. Additional options are planned.
11.5.3
Coding assistance for web content
Perhaps the biggest change to IDEA 5.0's web content features is that the IDE
now understands the nature and syntax of JavaScript, CSS , and HTML in a way it
never did before. Many of the code-aware features that make Java development
so pleasurable in IDEA are now available for web development as well, including
a built-in API reference and numerous code completion capabilities.
Figure 11.24 The CSS Colors & Fonts settings allow you to customize how IDEA
colorizes your stylesheets.
 
 
 
 
 
Search WWH ::




Custom Search