Click to See Complete Forum and Search --> : notepad / software package
domuk
07-02-2003, 03:41 AM
I feel that i get a better understanding of what is going on if i use notepad/wordpad. I can see the code and have to be very careful of sintax.
Is there a prefered (standard) structure to coading as there is in "C"?
If i code in notepad on a website that has been setup on pagmaker then will i upset the format, if pagemaker is to be used again on that website?
Your help is very much apriciated..
Thanks,
Dom..
Khalid Ali
07-02-2003, 09:38 AM
I don't think that will happen,unless youmake changes to any standard or proprietery tags,and then view them in browser,as a matter of fact many hard core developers still prefer to use notepad for their coding needs..
And for the convention you can use any convention because javascript has its roots in C/C++ and Java syntactically...
khaki
07-02-2003, 10:34 AM
hi Dom...
I've never seen PageMaker-generated code...
but I can't imagine that it is very clean to work with (it's an app used primarily for desktop publishing... not web publishing).
In addition...
I believe that PageMaker files are converted to HTML (similar to how Excel and Word are converted to HTML.... which is.... poorly :( Plus I think that PageMaker retains it's layout my making everything into tables... and that can get nightmarish real fast :eek: ).
Therefore... editing a page that has been altered outside of PageMaker and then converting it back into PageMaker may not be a possibility (or if it is... it's probably a horror-show :eek: )
And as far as bringing Javascript into a PageMaker page...
I'm not sure how it would handle that.
It probably allows you to create Javascript menus (like Fireworks does) before you convert it...
but going the other way...?....
As to your question :
"Is there a prefered (standard) structure to coading as there is in "C"?"
You can go here for that :
http://www.w3.org/TR/html4/
(proud of me, Charles? :) )
You asked this question in the Javascript forum...
so I expect that you will be doing a bit of Javascript coding...
but you will still rely heavily (and primarily) on HTML.
Therefore, Notepad is perfect for that (both).
As to how well PageMaker handles any editing outside of PageMaker... :confused:
(but I'd like to hear what you experience when you try it).
best of luck...
;) k
domuk
07-02-2003, 11:55 AM
I have been asked to update a friends web site and i think he has used pagemaker to creiate it. :eek:
I would however a "step through facility" (for javascript) as i have been use to in other high level languages, and notepad can not do that.
What is the best software package for debuging javascript in this way?
Thanks all.....
:)
khaki
07-02-2003, 01:37 PM
Originally posted by domuk
...
What is the best software package for debuging javascript in this way?
Excellent question!!! :)
(mind if I hang around while we wait for someone to answer that? :) LOL)
All I can say is that I use Visual InterDev (code view only) and it is really good at de-bugging vbscript.
It doesn't offer anything special for javascript... although it has a toolbox for html objects that is helpful.
So if someone knows of a dedicated javascript app that can do likewise... I'd be all over it!
In the meantime...
I'd say... just use Notepad for everything.
And if you wouldn't mind...
could you attach (via a txt file) the code that PageMaker generates?
I've suddenly become very curious to see it :rolleyes: .
thanks...
;) k
khaki
07-02-2003, 02:02 PM
Originally posted by Dave Clark
As for an interactive debugger, I use the MS Script Editor/Debugger -- works directly with IE Explorer (in break mode only) or with the MS development tool (e.g., FrontPage, Excel, Access, Word, Visual Basic, etc.) of your choice. Do I have that on my pc too?
(w2k... office2k... ie5.5)
can you tell me how I might launch that (or maybe you could stop by and create a shortcut for my desktop :) LOL)?
I figured that there had to be some sort of javascript debugger out there....
cuz there's just no way that you guys are all just naturally smarter than me ;)
so fess-up :)
;) k
Khalid Ali
07-02-2003, 03:43 PM
Originally posted by domuk
What is the best software package for debuging javascript in this way?
At the end it will come to the personal choice and with which software some one is comfortable.
I have been using Homesite for several years,it has a built in JavaScript engine that conforms to JavaScript version standard by netscape(may be ECMA to I never found out - there is not much diff between both).
The best part of this is that will not pass any javascript that is not standard,if you use it in conjunction with Netscapes built in debugger you will never be able to write wrong JS...:-)
domuk
07-03-2003, 04:13 AM
Due to my ignorance, I thought that there would be a simple answer to my original question.
Dave, what is break mode? I kinda understand your response regarding a MS development tool. But if you modified JS inside one of these tools then would it produce messy code? Can you step through JS in word? If so how?
As for MS script editor, I presume that it is within internet explorer. How can I find out more about MS script editor, any links to websites please?
Thanks all, for your expert support from this beginner,
Dom
;)
Zifnab
07-03-2003, 04:45 AM
Personally I use SciteFlash, which basically puts things neatly and colour-syntaxes it and stuff... nice thing is it works for Flash Actionsript, C++, C, Java, IDL, JavaScript, HTML, Perl and Bash, PHP as well as all kinds of property, config and ini files, text files, logs, and more... and you can also choose the encoding when saving a file (UTF-8, etc.) or export it as another filetype...
To give you an idea, the filetypes it "syntaxes" are:
*.properties;*.ini;*.inf;*.reg;*.url;*.cfg;*.cnf;*.aut;*.txt;
*.log;*.lst;*.doc;*.diz;*.nfo;*.bat;*.cmd;*.nt;*.diff;*.patch;
*.html;*.htm;*.asp;*.shtml;*.htd;*.php3;*.phtml;*.php;
*.htt;*.cfm;*.tpl;*.dtd;*.hta;*.vxml;*.xml;*.xsl;*.svg;*.xul;
*.xsd;*.dtd;*.xslt;*.axl;*.docbook;*.css;*.c;*.cc;*.cpp;
*.cxx;*.cs;*.h;*.hh;*.hpp;*.hxx;*.sma;*.pln;*.inc;*.t;*.rc;
*.rc2;*.dlg;*.idl;*.odl;*.java;*.js;*.pl;*.pm;*.cgi;*.pod;
*.sh;*.bsh;*.as
You can get Scite at:
http://www.scintilla.org/SciTE.html
And Scite|Flash at:
http://www.bomberstudios.com/sciteflash/
As far as I've been able to see sciteflash already has all (or at least most, plus a couple extra) of the extra language supports added that you need to get separately for Scite...
It may not be a debugger, but the layout and stuff makes for really easy to read/change code...
For a debugger personally I just use the debugger that's included in Mozilla...
domuk
07-04-2003, 03:33 PM
I have just looked at my friends site....
It is totally un structured. There have been parts of it with someone who knows what they are doing and there have been parts of it that have been **** and thrown together.
As there have been many people in the construction of the site, I do not know how it has been created.
I can see well structured bits and totally "package" generated bits.
I have totally written my site using notepad, with free FTP software.
There is no consistent structure to my friends site. This makes me want to re-write it, however it works and he has only asked me to make small changes using dream weaver.
I feel that he is a DTP kinda guy and not a software purest.
I just expect variable and procedures to be well documented and explained within the code.
Such is life..
I will figure it out "some day"
Thanks to you all for your help,
Dom...
Watch this space