|
Posted by Art on 09/01/07 17:03
On 9/1/07 10:48 AM, || wrote:
> I am creating web pages using jsp and use lots of divs. Is there a
> good editor that will help me match where divs begin and end within my
> syntax? I have things nested in divs and sometimes the divs close way
> below where I started. It is getting difficult to work with.
>
> Thanks Lex
>
Lex,
You didn't mention what platform that you use for development. If you're
on the Mac, BBEdit (www.barebones.com) has an extensive set of markup
tools and is syntax-aware of HMTL, PHP and CSS structures as well as a
number of other programming languages.
The editor window places markers next to major elements (eg. <head>,
<div>, <table>, css declarations, etc.). Clicking on a marker will
collapse the screen view around the element start/end which can aid in
tracking down nasty tag balancing issues. This is especially useful with
large numbers of nested tags, even better than reformatting with indents.
There are also built-in tools for reformatting and re-flowing the
document with indents.
Of course, good practice is to use HTML/CSS comments to mark the
beginning and end of your major blocks. BBEdit has a "clippings" palette
where you can keep frequently used code snippets such as these which is
quite useful.
Check it out !
Art (not associated with Bare Bones Software)
Navigation:
[Reply to this message]
|