-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Code Style
Donald Jackson edited this page Mar 28, 2024
·
8 revisions
We use the fmt-maven-plugin, which can be invoked at the command line via:
mvn com.spotify.fmt:fmt-maven-plugin:format
Formats your code using google-java-format which follows Google's code styleguide.
If you want your IDE to stick to the same format, check out the available configuration plugins:
Download google-java-format-eclipse-plugin_*.jar
and place in /Applications/Eclipse Java.app/Contents/Eclipse/dropins
. Restart Eclipse. Select the plugin in Preferences > Java > Code Style > Formatter > Formatter Implementation
.
In the plugins section in IntelliJ search for google-java-format
and install the plugin. Restart IntelliJ.
<title>gfg</title>
<style type=text/css>
p{
background-color:gray;
margin: 10px;
}
div
{
color: white;
background-color: 009900;
margin: 2px;
font-size: 25px;
}
span
{
color: black;
background-color: gray;
margin: 5px;
font-size: 25px;
}
</style>
<div> div tag </div>
<div> div tag </div>
<div> div tag </div>
<div> div tag </div>
<span>span-tag</span>
<span>span-tag</span>
<span>span-tag</span>
<span>span-tag</span>