I would like to be able to add coloured backgrounds to FitNesse table cells (sometimes entire rows) to enhance their readability. I’m happy if these colours are overwritten when a test page is run. Is there a way to do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can apply custom styles to any fitnesse cell by using the
!style_(text)
widgit. Where (text) is the name of some css class you have defined. You can see the various options for formatting the fitnesse wiki pages at fitnesse.org
EDIT : It looks as though the style widgit is only useful for formatting text not in a fixture table. For example:
does not set the style of ValueSetId to the strike class. But removing the ! from the table itself like so does work:
You could also try applying the style directly like so:
This uses the widgit that outputs the HTML tags. I tried applying it to the row but it did not work though 🙁 You might have to tag each individual element.