Color.module documentation, sprucing up, a vision for a style.module
October 2008 --dev
- #324502 Code cleanup by JohnAlbin
(
It leaves the user docs in README.txt and moves the rest to CHANGELOG.txt
It removes all the tabs
It removes all trailing spaces from the end of lines.
It makes the indentation conistent.
It removes the un-recommended VERSION from the .info files.
It uses single quotes instead of double quotes where it makes sense.
It uses double quotes to prevent escaping single quotes.
It removes some backticks (`) from some SQL queries. Drupal core doesn't use them. (And neither does Drupal core have spaces in SQL column names; but that will have to wait for another patch.)
)
- Merged is_hex() function from github
- Merged functionality for special {{DT!}} #hex {{/DT!}} when tag + shift is enabled. (from Dmitri)
- #324502 Code cleanup by JohnAlbin
(
It leaves the user docs in README.txt and moves the rest to CHANGELOG.txt
It removes all the tabs
It removes all trailing spaces from the end of lines.
It makes the indentation conistent.
It removes the un-recommended VERSION from the .info files.
It uses single quotes instead of double quotes where it makes sense.
It uses double quotes to prevent escaping single quotes.
It removes some backticks (`) from some SQL queries. Drupal core doesn't use them. (And neither does Drupal core have spaces in SQL column names; but that will have to wait for another patch.)
)
- Merged is_hex() function from github
- Merged functionality for special {{DT!}} #hex {{/DT!}} when tag + shift is enabled. (from Dmitri)
Also documentation touch-ups!
I have been working out ways to start style.module. In preparation I've been looking into regular expressions, here a few I've been able to make:
/(/s){0,4}((\#)|(\.))*[a-zA-Z0-9]*/
/(?:\s*{0,4}((\#)|(\.))*[a-zA-Z0-9]*)?([\{])?/
~(?:/\*\s*\{\{\s*([^/*]+)\s*\}\}\s*\*/)?\s*(#[0-9a-f]{3,6})\s*(?:/\*\s*\{\{\s*\/?\s*([^/*]+)\s*\}\}\s*\*/)?~is
/(?:\s*{0,4}((\#)|(\.))*[a-zA-Z0-9]*)?([\{])?/
~(?:/\*\s*\{\{\s*([^/*]+)\s*\}\}\s*\*/)?\s*(#[0-9a-f]{3,6})\s*(?:/\*\s*\{\{\s*\/?\s*([^/*]+)\s*\}\}\s*\*/)?~is
(through a java applet at http://regex.powertoy.org/)
I'm trying to capture an entire CSS statement, then take it an strip down essential stuff further yet.
However, I'm keeping that stuff on the backburner until we got a stable color.module that makes sense.