robsite

In webdev

Ultraviolet Syntaxes

Kleine Notiz für mich, da ich das immer vergesse und es auch nicht auf Ultraviolets Website steht:

actionscript, active4d, active4d_html, active4d_ini, active4d_library, ada, antlr, apache, applescript, asp, asp_vb.net, bibtex, blog_html, blog_markdown, blog_text, blog_textile, build, bulletin_board, c++, c, cake, camlp4, cm, coldfusion, context_free, cs, css, css_experimental, csv, d, diff, dokuwiki, dot, doxygen, dylan, eiffel, erlang, f-script, fortran, fxscript, greasemonkey, gri, groovy, gtd, gtdalt, haml, haskell, html-asp, html, html_django, html_for_asp.net, html_mason, html_rails, html_tcl, icalendar, inform, ini, installer_distribution_script, io, java, javaproperties, javascript, javascript+prototype, javascript+prototype_bracketed, jquery_javascript, json, languagedefinition, latex, latex_beamer, latex_log, latex_memoir, lexflex, lighttpd, lilypond, lisp, literate_haskell, logo, logtalk, lua, m, macports_portfile, mail, makefile, man, markdown, mediawiki, mel, mips, mod_perl, modula-3, moinmoin, mootools, movable_type, multimarkdown, objective-c++, objective-c, ocaml, ocamllex, ocamlyacc, opengl, pascal, perl, php, plain_text, pmwiki, postscript, processing, prolog, property_list, python, python_django, qmake_project, qt_c++, quake3_config, r, r_console, ragel, rd_r_documentation, regexp, regular_expressions_oniguruma, regular_expressions_python, release_notes, remind, restructuredtext, rez, ruby, ruby_experimental, ruby_on_rails, s5, scheme, scilab, setext, shell-unix-generic, slate, smarty, sql, sql_rails, ssh-config, standard_ml, strings_file, subversion_commit_message, sweave, swig, tcl, template_toolkit, tex, tex_math, textile, tsv, twiki, txt2tags, vectorscript, xhtml_1.0, xml, xml_strict, xsl, yaml, yui_javascript

Das sind die verfügbaren Syntaxen in Ultraviolet. Erzeugt hiermit:

require 'rubygems'
require 'uv' 
File.open('/Users/rob/Desktop/syntaxes.txt', 'w') {|f| f.write(Uv.syntaxes.join(', '))}

Ultraviolet ist eine klasse Library zum highlighten von Syntax. Benutz ich zusammen mit tm_syntax_highlighting für die schicken Codeboxen hier im Blag. tm_syntax_highlighting wiederum liest die Farbdefinitionen von TextMate aus, wodurch der Code hier genauso chique aussieht wie in meinem Lieblingseditor. Har!

· rails, ruby, webdev ·

Rails + Merb = Rails

Beginning today, the Merb team will be working with the Rails core team on a joint project. [...] Effectively, Merb 2 is Rails 3.

Whoa.

Why!?

As you have probably gathered from the above, there aren’t any clear points that the Merb and Rails team disagree on anymore. [...] Given this philosophical convergence, it just didn’t seem like there was much to gain by continuing to duplicate effort and spend time and energy fighting each other.

· merb, rails, ruby, webdev ·

Rails: before_filter mit Parametern

Kleiner Rails Tipp: before_filter akzeptiert auch Blöcke. So kann man den Methoden leicht Parameter übergeben. Der Block bekommt als Parameter den aktuellen Controller:

before_filter {|c| c.do_stuff(param1, param2)}
· rails, webdev ·

You Need the [PHP] Community

Don’t develop in the dark; get out there and meet people. Programming is not just about how many lines you’ve written and what sort of fun tricks you’ve managed to employ. It’s about getting out there and sharing with fellow developers and making the connections and friendships that could save you down the line.

· php, webdev, weisheiten ·
Mastodon