View Full Version : Css Editor?
varsis
Sep 5, 2008, 05:21 PM
I am wondering how I can add in so I can see the CSS tags in a css document, in a separate window. Also, so you see the tags for each when you click on them. I don't even have a clue, I know I can find the start and end tags, but I want it to be more full proof...
Have a look at cssedit in the attachment.
I need the editor I am making to show like that.
Thanks
Chris
I would almost suggest using Dreamweaver, as it has a window that pulls out the CSS for a page and lets you see what each style name does. Just a thought.
TEG
varsis
Sep 5, 2008, 06:30 PM
actually im trying to imitate that in cocoa...
But don't know how I would do that. Any ideas?
Mac Player
Sep 5, 2008, 06:45 PM
Regex matching?
Regex matching?
Sounds like the easiest way, Regex is quite useful for this.
TEG
varsis
Sep 5, 2008, 07:07 PM
Sounds like the easiest way, Regex is quite useful for this.
TEG
Here is what I need to validate:
#css {
Content
}
// also need to see comments
Tried this:
NSString *begin = [NSString stringWithFormat:@"{"];
NSNumber *end = [NSString stringWithFormat:@"}"];
NSPredicate *betweenPredicate =
[NSPredicate predicateWithFormat: @"attribute BETWEEN %@",
[NSArray arrayWithObjects: begin, end]];
if ([betweenPredicate evaluateWithObject:contentsOfFile] == YES) {
NSLog(@"Match!");
} else {
NSLog(@"No match!");
}
No go...
varsis
Sep 6, 2008, 12:32 PM
can anyone help me with the format? Thanks...
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.