#Swift + CodeMirror#
###About### Swift, recently released by Apple, promises to become a more friendly alternative to Objective-C. It that's the case, web-based editors like Ace and CodeMirror will need syntax highlighting for the language.
This is a somewhat crude Swift mode.
###Progress### Done
- Keywords
for else var ...
- @ - preffixed
@lazy var lazy_variable = "lazy..."
- Numbers
var pi = 3.14159
- Comments
- Constants
var something = nil
- Operators
+ - * ...
- String
- Variable in a string
- Regex
Still to do
- Indenting
- Autocomplete
###Variable in a string###
Code
var inner_var = "inner variable";
println("this is an outer string and \(inner_var)");
Result
> this is an outer string and inner variable
Swift mode is being used for codeyourcloud.com.
Html
<link href=""
======= A demo can be seen here.