Labs/Bespin/FAQ: Difference between revisions

no edit summary
No edit summary
Line 112: Line 112:


We also have a plan for syntax highlighter plugins that will grok vim syntax files, emacs, or textmate so we don't have to reinvent the wheel. Want to help with that too?
We also have a plan for syntax highlighter plugins that will grok vim syntax files, emacs, or textmate so we don't have to reinvent the wheel. Want to help with that too?
==== Why do you tell me my browser isn't supported? ====
We have seen some folks talking about the pop-up that we show when we detect that the browser in question won't support Bespin.
It is important to note that we aren't doing a user agent check. We actually check for the functionality that is required for this to work: Canvas and a subset of Canvas (drawing text)
You can see what we need in the following
[http://hg.mozilla.org/labs/bespin/file/299bfe0abcfe/frontend/js/registration.js JavaScript Code]:
function checkBrowserAbility() {
    if (typeof $('testcanvas').getContext != "function") return false;
    var ctx = $('testcanvas').getContext("2d");
    if (ctx.fillText || ctx.mozDrawText)
        return true; // you need text support my friend
    else
        return false;
}
So, it isn't that we don't love your browser. It just won't work.


==== Why doesn't Bespin support i18n well? ====
==== Why doesn't Bespin support i18n well? ====
355

edits