Data update

This commit is contained in:
Ingy dot Net 2024-04-19 16:56:29 -07:00
parent 0df55f9f24
commit aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions

View file

@ -14,30 +14,30 @@ On December 24, 2010, Ashkenas announced the release of stable 1.0.0.
A common JavaScript snippet using the jQuery library is
<lang javascript>
<syntaxhighlight lang="javascript">
$(document).ready(function() {
// Initialization code goes here
});
</lang>
</syntaxhighlight>
or even shorter,
<lang javascript>
<syntaxhighlight lang="javascript">
$(function() {
// Initialization code goes here
});
</lang>
</syntaxhighlight>
In CoffeeScript, the <code>function</code> keyword is replaced by the <code>-></code> symbol, and indentation is used instead of curly braces (except when defining an [[associative array]]), as in Python. Also, parentheses can usually be omitted. Thus, the CoffeeScript equivalent of the snippet above is
<!-- Ruby is probably the most similar language that GeSHi supports -->
<lang ruby>
<syntaxhighlight lang="ruby">
$(document).ready ->
# Initialization code goes here
</lang>
</syntaxhighlight>
or
<lang ruby>
<syntaxhighlight lang="ruby">
$ ->
# Initialization code goes here
</lang>
</syntaxhighlight>
== Compiling ==