Looking to write a macro where the user can configure the table border color. Need something along the lines of:
<table style="border: 2px solid $colorvariable;">
but I need to 'escape' the $colorvariable.
my macro works as expected with
<table style="border: 2px solid white;">
Hi John,
this should do it:
Macro Body: rendered
## @param colorvariable:title=Colorvariable|type=string|required=true <table style="border: 2px solid $paramcolorvariable;">
oops, I forgot the param leading the attibute. will try that, thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did you name the variable "$paramcolorvariable"?
without "param" before the variable name, it doesn't work. In your example code, you name the variable just $colorvariable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did the following:
## @param colorvariable...
<table style="border: 2.0px solid $colorvariable;">
my bad. will test in a few but I'm pretty sure you hit it. have programmed in too many different languages. thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.