Split html code

  • Thread starter Thread starter Wayne-I-M
  • Start date Start date
W

Wayne-I-M

Hi

In VBA you can split code to make them more readable with 2 spaces and _
like this

XXXXXXXXXX _
XXXX _
DDDDDDDDDDDDDD _
end sub

How do you do this in frontpage code - I have some forms that pass info
forwards and they are just so long it's hard to read them

I have tried to split them down but not been successful.

Looking for something like this if poss. (obviously without the _ )

<%
DIM strXXXXXX, strYYYYYYY, strZZZZZZZZ, _
strAAAAAAA, strBBBBBBBB _
strCCCCCCCCCC
%>

I have tried just putting in a return here and there but it all went wrong

Any ideas

Many thanks
 
That won't affect server side (or client side) script code and you don't want it to line wrap or it won't work
- it only affects html

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| With your site open click Tools > page options.
| Click the code Formatting tab.
| Check the box for: "Allow line breaks within tags"
|
| see if it helps.
|
| --
|
| Steve Easton
| Microsoft MVP FrontPage
| FP Cleaner
| http://www.95isalive.com/fixes/fpclean.htm
| Hit Me FP
| http://www.95isalive.com/fixes/HitMeFP.htm
|
| | > Hi
| >
| > In VBA you can split code to make them more readable with 2 spaces and _
| > like this
| >
| > XXXXXXXXXX _
| > XXXX _
| > DDDDDDDDDDDDDD _
| > end sub
| >
| > How do you do this in frontpage code - I have some forms that pass info
| > forwards and they are just so long it's hard to read them
| >
| > I have tried to split them down but not been successful.
| >
| > Looking for something like this if poss. (obviously without the _ )
| >
| > <%
| > DIM strXXXXXX, strYYYYYYY, strZZZZZZZZ, _
| > strAAAAAAA, strBBBBBBBB _
| > strCCCCCCCCCC
| > %>
| >
| > I have tried just putting in a return here and there but it all went wrong
| >
| > Any ideas
| >
| > Many thanks
| >
| > --
| > Wayne
| > Manchester, England.
| >
|
|
 
You split lines of server side code in your html (VBscript per your example)
- the same way you split lines of code in VBA

See http://www.microsoft.com/technet/scriptcenter/guide/sas_vbs_dcot.mspx?mfr=true

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Hi
|
| In VBA you can split code to make them more readable with 2 spaces and _
| like this
|
| XXXXXXXXXX _
| XXXX _
| DDDDDDDDDDDDDD _
| end sub
|
| How do you do this in frontpage code - I have some forms that pass info
| forwards and they are just so long it's hard to read them
|
| I have tried to split them down but not been successful.
|
| Looking for something like this if poss. (obviously without the _ )
|
| <%
| DIM strXXXXXX, strYYYYYYY, strZZZZZZZZ, _
| strAAAAAAA, strBBBBBBBB _
| strCCCCCCCCCC
| %>
|
| I have tried just putting in a return here and there but it all went wrong
|
| Any ideas
|
| Many thanks
|
| --
| Wayne
| Manchester, England.
|
 
Back
Top