On 1/20/07 at 10:55 AM,  Jacob Palme <[EMAIL PROTECTED]> wrote:

> Is there any way in BBEdit of cleaning up the HTML of a page
> (i.e. putting and removing line breaks in a logically
> structured way) which will *not* do any indentation of lines?

Set this (it is Dreamweaver's default from some point in the past, edit as you 
please) as the "HTML source profile" in the HTML Markup preferences. The key 
here is that the @indent attribute of the <indent> tag is 0.

-Gregory



<!-- options

    INDENTION   : indention options
        ENABLE  - allows indention
        INDENT  - columns per indention
        TABS    - columns per tab character
        USE     - TABS or SPACES for indention
        ACTIVE  - active indention groups (IGROUP)

    LINES       : end-of-line options
        AUTOWRAP    - enable automatic line wrapping
        BREAK       - CRLF, CR, LF
        COLUMN      - auto wrap lines after column

    OMIT        : element omission options
        OPTIONS - options

    ELEMENT     : element options
        CASE    - "UPPER" or "lower" case
        ALWAYS  - always use preferred element case (instead of original case)

    ATTRIBUTE   : attribute options
        CASE    - "UPPER" or "lower" case
        ALWAYS  - always use preferred attribute case (instead of original case)

-->
<?options>
<indention enable indent="0" tabs="4" use="spaces" active="1,2">
<lines autowrap column="76" break="CR">
<omit options="0">
<element case="lower">
<attribute case="lower">
<colors text="0x00000000" tag="0x00000000" unknowntag="0x00000000" 
comment="0x00000000" invalid="0x00000000" object="0x00000000">

<!-- element information
    line breaks             : BREAK  = "before, inside start, inside end, after"
    indent contents         : INDENT
    indent group            : IGROUP = "indention group number" (1 through 8)
    specific name case      : NAMECASE = "CustomName"
    prevent formatting      : NOFORMAT
-->
<?elements>
<address break="1,0,0,1">
<applet break="0,1,1,0" indent>
<base break="1,0,0,1">
<blockquote break="1,0,0,1" indent>
<body break="1,1,1,1">
<br break="0,0,0,1">
<caption break="1,0,0,1">
<center break="1,1,1,1" indent>
<cfabort break="1,0,0,1">
<cfapplication break="1,0,0,1">
<cfbreak break="1,0,0,1">
<cfcol break="1,0,0,1">
<cfcontent break="1,0,0,1">
<cfcookie break="1,0,0,1">
<cferror break="1,0,0,1">
<cffile break="1,0,0,1">
<cfform break="1,1,1,1" indent>
<cfgrid break="0,1,1,1" indent>
<cfgridcolumn break="1,0,0,1">
<cfgridrow break="1,0,0,1">
<cfheader break="1,0,0,1">
<cfhtmlhead break="1,0,0,1">
<cfhttp break="1,1,1,1" indent>
<cfhttpparam break="1,0,0,1">
<cfif break="1,1,1,1" indent>
<cfelse break="1,0,0,1" indent>
<cfelseif break="1,1,1,1">
<cfinclude break="1,0,0,1">
<cfindex break="1,0,0,1">
<cfinput break="1,0,0,1">
<cfinsert break="1,0,0,1">
<cfldap break="1,0,0,1">
<cflocation break="1,0,0,1">
<cfloop break="1,1,1,1" indent noformat>
<cfmail break="1,1,1,1" indent>
<cfmodule break="1,0,0,1">
<cfobject break="1,0,0,1">
<cfoutput noformat>
<cfparam break="1,0,0,1">
<cfpop break="1,0,0,1">
<cfquery break="1,1,1,1" indent noformat>
<cfreport break="1,1,1,1" indent>
<cfsearch break="1,0,0,1">
<cfselect break="1,1,1,1" indent>
<cfset break="1,0,0,1">
<cfslider break="1,0,0,1">
<cftable break="1,1,1,1" indent>
<cftextinput break="1,0,0,1">
<cftransaction break="1,1,1,1" indent>
<cftree break="1,1,1,1" indent>
<cftreeitem break="1,0,0,1">
<cfupdate break="1,0,0,1">
<dd break="1,0,0,1" indent>
<dir break="1,0,0,1" indent>
<div break="1,0,0,1" indent>
<dl break="1,0,0,1" indent>
<dt break="1,0,0,1" indent>
<embed break="0,1,1,0" indent>
<form break="1,1,1,1" indent>
<frame break="1,0,0,1">
<frameset break="1,0,0,1" indent igroup="2">
<h1 break="1,0,0,1" indent>
<h2 break="1,0,0,1" indent>
<h3 break="1,0,0,1" indent>
<h4 break="1,0,0,1" indent>
<h5 break="1,0,0,1" indent>
<h6 break="1,0,0,1" indent>
<head break="1,1,1,1">
<hr break="1,0,0,1">
<html break="1,1,1,1">
<ilayer break="1,0,0,1">
<input break="1,0,0,1">
<isindex break="1,0,0,1">
<layer break="1,0,0,1">
<li break="1,0,0,1" indent>
<link break="1,0,0,1">
<map indent>
<menu break="1,0,0,1" indent>
<meta break="1,0,0,1">
<object break="0,1,1,0" indent>
<ol break="1,1,1,1" indent>
<option break="1,0,0,1">
<p break="1,0,0,1" indent>
<param break="1,0,0,1">
<pre break="1,0,0,1" noformat>
<script break="1,0,0,1" noformat>
<select break="1,1,1,1" indent>
<server break="1,0,0,1" noformat>
<style break="1,0,0,1" noformat>
<table break="1,1,1,1" indent igroup="1">
<td break="1,0,0,1" indent igroup="1">
<textarea break="1,0,0,1" noformat>
<th break="1,0,0,1" indent igroup="1">
<title break="1,0,0,1">
<tr break="1,0,0,1" indent igroup="1">
<ul break="1,1,1,1" indent>

<!-- attribute information
    specific name case      : NAMECASE = "CustomName"
    values follow attr case     : SAMECASE  
-->
<?attributes>
<onAbort namecase="onAbort">
<onBlur namecase="onBlur">
<onChange namecase="onChange">
<onClick namecase="onClick">
<onDragDrop namecase="onDragDrop">
<onError namecase="onError">
<onFocus namecase="onFocus">
<onKeyDown namecase="onKeyDown">
<onKeyPress namecase="onKeyPress">
<onKeyUp namecase="onKeyUp">
<onLoad namecase="onLoad">
<onMouseDown namecase="onMouseDown">
<onMouseMove namecase="onMouseMove">
<onMouseOut namecase="onMouseOut">
<onMouseOver namecase="onMouseOver">
<onMouseUp namecase="onMouseUp">
<onMove namecase="onMove">
<onReset namecase="onReset">
<onResize namecase="onResize">
<onSelect namecase="onSelect">
<onSubmit namecase="onSubmit">
<onUnload namecase="onUnload">
<onDblClick namecase="onDblClick">
<onAfterUpdate namecase="onAfterUpdate">
<onBeforeUpdate namecase="onBeforeUpdate">
<onHelp namecase="onHelp">
<onReadyStateChange namecase="onReadyStateChange">
<onScroll namecase="onScroll">
<onRowEnter namecase="onRowEnter">
<onRowExit namecase="onRowExit">
<align samecase>
<checked samecase>
<codetype samecase>
<compact samecase>
<ismap samecase>
<frame samecase>
<method samecase>
<multiple samecase>
<noresize samecase>
<noshade samecase>
<nowrap samecase>
<selected samecase>
<shape samecase>
<type samecase>
<valign samecase>
<visibility samecase>
<?end>

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to