I normally use HTML formatting in my macros using the <span> tag. I was reading through the wiki and really didn't find reference to it, but I did find the CSS formatting.
I played around with it a bit, but could not get CSS formatting to work in my macros. I am assuming that css has to be defined in each macro or can you do a macro call to get the definitions?
My programming skills are pretty basic, so maybe I should stick with the <span> tag? Will that still be supported in 1.4?
Example of what I typically do:
<span style="color:red">
<span style="font-size:0">
HTML, CSS formatting
Moderators: dorpond, trevor, Azhrei
- darkeness66
- Giant
- Posts: 124
- Joined: Wed Feb 07, 2007 8:55 pm
- Location: Fremont, OH
Re: HTML, CSS formatting
CSS works in macros. Can you post some example code of what you're trying to do.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: HTML, CSS formatting
Do you have any other comments here.
- darkeness66
- Giant
- Posts: 124
- Joined: Wed Feb 07, 2007 8:55 pm
- Location: Fremont, OH
Re: HTML, CSS formatting
Sorry for the delay. Work has been crazy.
So does CSS work everywhere the HTML tags do?
As an example, lets say I want to create a generic macro to use over and over so that I get this:
set font-size=0
<create code to get input, set variables & do calculations>
change font color & size to red & size 14 if condition_1 is meet and blue & size 20 if condition_2 is meet
<produce output>
I studied programming 25+ years ago and now I fool around with making macros and editing web pages as a side hobby (a small side hobby ). My code writing skills are pretty basic and I'm not sure that CSS is the best route for the little formatting I do, but I am curious and it's always good to know these things.
Oh, I do understand Library tokens and do use them in my framework.
So does CSS work everywhere the HTML tags do?
As an example, lets say I want to create a generic macro to use over and over so that I get this:
set font-size=0
<create code to get input, set variables & do calculations>
change font color & size to red & size 14 if condition_1 is meet and blue & size 20 if condition_2 is meet
<produce output>
I studied programming 25+ years ago and now I fool around with making macros and editing web pages as a side hobby (a small side hobby ). My code writing skills are pretty basic and I'm not sure that CSS is the best route for the little formatting I do, but I am curious and it's always good to know these things.
Oh, I do understand Library tokens and do use them in my framework.