Rich,
Thanks for the pointer to the reference. I still have some questions
though.
Below is a snippit of SASS. SASS is compiled into CSS so many of the
elements are similar.
I want to be able to identify different elements and have them color-
highlighted.
#content is an ID (think CSS)
.students is a CLASS
+no-bullets is a MIXIN (think function)
:border 4px ridge #928d6b is a definition where :border is a
predefined name, ridge is a string constant, and 4px and #928d6b are
numeric constants
How would I define these elements in a Codeless Language Module? I
have regex's for these elements I'm just not sure how to fit them into
the CLM.
Thanks,
Matt
ID Regex: <string>#[a-zA-Z0-9_-]+</string>
CLASS Regex: <string>\.[a-zA-Z0-9_-]+</string>
MIXIN Regex: <string>\+[a-zA-Z0-9_-]+</string>
Property Name Regex: <string>(:)(azimuth|background-attachment|
background-color|background-image[..SNIP..]|width|word-spacing|z-index)
\b</string>
Property Value Regex: <string>\b(absolute|all-scroll|always|auto|
baseline|[..SNIP..]visible|w-resize|wait|whitespace)\b</string>
Unit Constant Regex: <string>(?<=[\d])(px|pt|cm|mm|in|em|ex|pc)\b|
%</string>
RGB Regex: <string>(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b</string>
#content
ul.students
//:height 562px
//:overflow auto
+no-bullets
li.student
+clearfix
span.handle
:font-size .75em
.photo
+float-left
:width 110px
img
:border 4px ridge #928d6b
.student_bio
+float-left
:margin-left 1em
:width 525px
#special.quote
+inline-block
:width 500px
:background url(/images/quote.gif) 0px 0.85em no-
repeat
blockquote
:margin 1em 1em 1em 2em
On Feb 25, 12:14 pm, Rich Siegel <[email protected]> wrote:
> On 2/25/10 at 11:52 AM, [email protected] (Matt) wrote:
>
> >Where can I find documentation for how to construct the Module?
>
> Appendix "D" of the user manual (available on the Help menu)
> should have everything you need.
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.