- Help -> Install New Software
- Add this: http://github.eclipsesource.com/jshint-eclipse/updates/
- Install JSHint. Studio will restart.
After successfull install, right click on your project:
- Properties:
/* | |
Ratings Stars | |
(with as little code as possible) | |
*/ | |
.rating { | |
unicode-bidi: bidi-override; | |
direction: rtl; | |
text-align: center; | |
} | |
.rating > span { |
.wrapper:hover label{ | |
background-position:left bottom; | |
} | |
label{ | |
background:url('http://img833.imageshack.us/img833/5959/stard.png') no-repeat left bottom; | |
float:right; | |
line-height:20px; | |
padding-left:20px; | |
height:15px; | |
} |
/* | |
Ratings Stars | |
(with as little code as possible) | |
- Modified by @mprogano - | |
*/ | |
.rating { | |
unicode-bidi: bidi-override; | |
direction: rtl; | |
text-align: center; |
/* | |
Ratings Stars | |
(with as little code as possible) | |
- Modified by @mprogano - | |
*/ | |
.rating { | |
unicode-bidi: bidi-override; | |
direction: rtl; | |
text-align: center; |
/* | |
* Set up your Git configuration | |
*/ | |
git config --global user.email "[email protected]" | |
git config --global user.name "Your Name" | |
git config --global core.editor "nano" |
After successfull install, right click on your project:
{ | |
"bitwise": true, | |
"camelcase": true, | |
"eqeqeq": true, | |
"newcap": true, | |
"indent": 4, | |
"unused": true, | |
"onevar": true, | |
"undef": true, | |
"trailing": true, |
Test |
<?xml version="1.0"?> | |
<ruleset name="AG"> | |
<description>The Coding Standard.</description> | |
<arg name="tab-width" value="4"/> | |
<!-- PSR2 --> | |
<rule ref="PSR2.Classes.PropertyDeclaration"/> | |
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/> | |
<rule ref="PSR2.Files.EndFileNewline"/> | |
<rule ref="PSR2.Methods.FunctionCallSignature.SpaceAfterCloseBracket"> |
// http://jsfiddle.net/gerst20051/zhzuwoqe/ | |
var language = 'swift'; | |
var how_awesome = 'very awesome!!'; | |
var string = 'hey i\'m a \\(language) string in disguise. \\(how_awesome)'; | |
function parseString(data) { | |
var re = /\\\((.*?)\)/g; | |
return data.replace(re, function(match) { | |
return eval(match.replace(/\\/g, '').replace(/\(/g, '').replace(/\)/g, '')); |