so  Danielo Rodríguez made this really nice 'Red Text' macro and it got me 
to wondering if I could make one for each of the other colors I want.

so I made a macro called $:/macros/danielo/rojo-blue.js
with this text.  note the changes highlighted but it doesn't work when I 
call it from a tiddler with this even after a save and reload.

can someone point me in the right direction here?

tharks.

<<rojo-blue "test">>



/*\
title: $:/macros/skeeve/rojo-blue.js
type: application/javascript
module-type: macro

\*/
(function(){

/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";

/*
Information about this macro
This is developed to put some text in blue.
*/

exports.name = "rojo-blue";

exports.params = [
        { name: "textToColorize" }
];

/*
Run the macro
*/
exports.run = function(textToColorize) {
        if( !textToColorize) textToColorize = "IMPORTANT";
                return spanize(textToColorize,"blue");
    
    function spanize(texto,color){
        return "<span style='color:" + color + "'>" + texto + "</span>";
    }

};

})();



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to