Archive for March 22nd, 2008

Playing with Sintax Highlighter

Posting code snippets is usually painful. I’m playing with the Syntax Highlighter plugin (I got the instructions from here).

        //Fill the coefficients of the equation
        eqn[2] = p0 - 2*p1 + p2;
        eqn[1] = 2*p1-2*p0;
        eqn[0] = p0 - c;
        int nRoots = QuadCurve2D.solveQuadratic(eqn);

Nice, isn’t it?

Saturday, March 22nd, 2008