Rolling Your Own Script Editor

Does anyone know if there is a way in a window you've developed on your
own to access Forte's "compile" logic? Have a TextEditField and would
like the stuff in it to be compiled.
Curtis Marsden
[email protected]

If we are making a text-editor wish list, let me add my two cents worth --
How about text-sensitive help - when you do f1, look up the word under the
cursor, and if it is found, automatically position to that topic in the
help file. And as long as we are talking about help, how about more
example syntax, suitable for cutting and pasting?
I do like Forte's search and replace feature, with the little check-boxes,
but wish that it would find all references, not just those in methods. I
got nailed once changing an attribute or method name (I forget which) that
was also referenced in a virtual attribute. The code broke, and it was
pretty hard to track down why.
Beyond that, I would echo ALL of Richard's suggestions. If I were to pick
the one or two points that I would consider most important, it would be
these: Using color to highlight key words and comments in the methods; and
using a treeview with projects, classes, and methods to simplify navigation
of the project hierarchy.
--Jeanne
======================================================
Jeanne Hesler <[email protected]>
MSF&W Software, Product Development
(217) 698-3535 ext 207
http://www.msfw.com
======================================================
/\ Imaging Developer - the only imaging product
\/ integrated into the Forte Development Environment
======================================================
From: Richard Stobart <[email protected]>
To: Don Nelson <[email protected]>; Thomas Mercer-Hursh, Ph.D.
<[email protected]>
Cc: Forte Users <[email protected]>
Subject: Re: Rolling your own script editor
Date: Sunday, March 29, 1998 6:45 AM
I think the point is that the editing in Forte is archaic. Someone (andwe
all are looking directly at Forte themselves) needs to provide a user
friendly development environment.
Useful features that are on all successful IDE's built in the later partof
the century are:
Text highlighting - This doesn't even work properly in V3F. Tryshift-down
past a long line.
Context highlighting or colours - Type a reserved word and it appears in
bold would be a good start.
Search - What is that greyed out cancel button for?
Search - I am reading someone's code and they are calling a method on anSO.
How do I quickly find where that method is?
Layout - What about a tree view of Projects, Classes and
Methods/Attributes - Double click on the method and go directly there. Take
a look at MSVC for a useable interface.
'How do I?' on help.
Why is it necessary to keep going to the web to look for tech support?
Can't that be added to Help.
Object ID's - all or nothing. Try changing an object's name. All the
function prototypes change - none of the code changes - brokeneverywhere.
If there was a descent Search and Replace (Would you like to replacethis?
And the text in your function prototype, Would you like to replace this
too?) this would be vaguely acceptable.
I could go on but I won't.
Regards
Richard Stobart
Consultant, ECSoft, UK
101 Wigmore Street
London W1H 9AA
(0171) 355 1101
-----Original Message-----
From: Don Nelson <[email protected]>
To: Thomas Mercer-Hursh, Ph.D. <[email protected]>
Cc: Forte Users <[email protected]>
Date: 29 March 1998 01:49
Subject: Re: Rolling your own script editor
You probably could, but it would very likely "break" with future
versions
of Forte. Not recommended at this time.
Don
At 03:32 PM 3/27/98 -0800, Thomas Mercer-Hursh, Ph.D. wrote:
At 09:45 PM 3/27/98 +0000, Alfred Scholldorf wrote:
No, but Wow would that be a cool feature!
Does anyone know if there is a way in a window you've developed on
your
own to access Forte's "compile" logic? Have a TextEditField andwould
like the stuff in it to be compiled.
[email protected]
Also potentially quite interesting would be the option to use optional
editors in place of any standard one. I have been very impressed, for
example, with ED4W and its ability to recognize syntax, use color to
highlight syntactically relevent areas, and provide typing shortcutswhich
can pop in whole language segments in response to a few keystrokes. They
haven't done a Forte language template yet, but they do provide all the
tools necessary to do one and they have provided the capability withmany
other languages to hand the current buffer to a compiler, collect the
errors, and then return to ED4W with errors marked. I don't know howeasy
it would be to get it to interface with the repository, but I don't seewhy
this should be that difficult.
=========================================================================
Thomas Mercer-Hursh, Ph.D email:
[email protected]
Computing Integrity, Inc. sales: 510-233-9329
550 Casey Drive - Cypress Point support: 510-233-9327
Point Richmond, CA 94801-3751 fax: 510-233-6950
============================================
Don Nelson
Regional Consulting Manager - Rocky Mountain Region
Forte Software, Inc.
Denver, CO
Phone: 303-265-7709
Corporate voice mail: 510-986-3810
aka: [email protected]
============================================
"Until you learn to stalk and overrun, you can't devour anyone" - Hobbes

Similar Messages

  • Roll Your Own - APEX 4.0 and JQuery-UI Application

    For those with a apex.oracle.com account and want to see jQeury tabs running via 4.0 in your own Workspace, use following this script to create your own version of Shijesh's (Apex_Noob) application.
    Credit also goes out to Alistair Laing for his hard work in investigating why 4.0 is requiring the use of the googleapis jquery.js... libraries.
    Application Builder - Create
    Application Type - Database
    Create Application - From Scratch
    Name - jQuery Application
    Add Page - keep default and Click Add Page
    Click CreateMy application defaulted to Theme 2, you will need to switch the theme to one of the following: If you don't the tabs will not render properly.
    8 Orange
    10 Sand
    13 Classic Blue
    14 Simple Green
    15 Light Blue
    16 Dark Blue
    18 Simple Gray
    19 Red Gray
    Message - Application created successfully.
    Click Shared ComponentsUnder User Interface Click - ThemesIf you don't see one of the above Themes, you will need to Create and switch your Theme.
    Click - CreateFrom the Repository selected Click - Next and select one of the above Themes
    Click - Switch ThemeSelect one of the above Themes and Click - Next
    Click -NextClick - Switch ThemeReturn to your newly created Application by Clicking on Application xxxxxxx Breadcrumb
    Click - Create PageSelect - Blank PageClick - NextAssign the page a name
    Click - NextAccept defaults and Click - NextClick - FinishClick - Edit PageI still work in Component View, to toggle to this View, click on the control adjacent to Page number and Go button. Hover over the ones on the far right and you will see both Component View and Tree View
    From Component View
    Click on the Page Edit Control
    In the Text Area labeled Javascript/Execute when Page Loads - paste in the following code:
    $x("tabs").appendChild( $x("tabs-1"));
    $x("tabs").appendChild( $x("tabs-2"));
    jQuery("#tabs").tabs();In the Text Area labeled HTML Header and Body Attribute/HTML Header - paste in the following code:
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/redmond/jquery-ui.css" type="text/css" />
    <script src= "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.js"> </script>Click - Apply ChangesRequired use of the Google jqueryui libraries is being questioned by recent threads created by Alistair Laing since it appears that 4.0 does not currently support jQeury tabs
    {thread:id=1083507}
    {thread:id=1083540}
    Create a Region
    Type HTML Text - accept defaults
    Provide a Title like "Tabs" and accept defaults
    Template - Reports Region
    Sequence 10
    Click - NextIn the Enter HTML Text Region Source: Text Area - paste in the following code:
    <div id="tabs">
    <ul>
    <li><a href="#tabs-1">Employees</a></li>
    <li><a href="#tabs-2">Departments</a></li>
    </ul>
    </div>Click - Create RegionCreate a second Region
    Type Report/Sql Report
    Provide a Title like "Employees" and accept defaults
    Template Reports Region
    Sequence 20
    Click - NextIn the Enter SQL Query or PL/SQL function returning a SQL Query: Text Area - paste in the following code:
    SELECT empno,
           ename,
           job,
           mgr,
           hiredate,
           sal,
           comm,
           deptno
    FROM   empClick - Create RegionEdit the newly created Report Region
    Under Attributes/Static ID - paste in the following code:
    tabs-1Click - Apply ChangesCreate a third Region
    Type Report/Sql Report
    Provide a Title like "Departments" and accept defaults
    Template Reports Region
    Sequence 30
    Click - NextIn the Enter SQL Query or PL/SQL function returning a SQL Query: Text Area - paste in the following code:
    SELECT deptno,
           dname,
           loc
    FROM   deptClick - Create RegionEdit the newly created Report Region
    Under Attributes/Static ID - paste in the following code:
    tabs-2Click - Apply ChangesRun you page and you should see you tabs.
    Jeff

    Great post Jeff,
    With regard to Jquery UI and tabs I've contacted the Apex dev team and received a reply from them.
    All the jQueryUI files are included in the APEX 4.0 distribution, but not all jQueryUI components
    are loaded by default to avoid a huge initial download. It's not necessary to load your own version of jQueryUI, just load the missing component.
    For the "Tabs" you have to add
    <link href="IMAGE_PREFIX#libraries/jquery-ui/1.8/themes/base/jquery.ui.tabs.css" rel="stylesheet" type="text/css" />
    <script src="#IMAGE_PREFIX#libraries/jquery-ui/1.8/ui/minified/jquery.ui.tabs.min.js" type="text/javascript"></script>
    to your page template or the header attribute of your page where you want to use it.They did not mention which other Jquery UI widgets were not included so people need to check to see if they get any JS errors Like "$('#tabs').tabs() is not a function" this would suggest that tabs is not being loaded. To included it in you page header directly after #HEAD# you need to place the css and js as stated above.
    If you need jquery help just post you queries here or the is some other jquery links that maybe of some use
    jQuery
    http://jquery.com/ - Official jQuery Website
    http://api.jquery.com/ - jQuery API Library
    http://plugins.jquery.com/ - jQuery Plugins (Not APEX related)|
    http://yayquery.com/ - yayQuery - jQuery Podcast
    http://jqueryui.com/ - Official jQuery UI Website
    http://jqueryui.com/demos/ - jQuery UI Demos
    Edited by: Alistair Laing on Jun 9, 2010 4:04 PM
    Add more links
    Edited by: Alistair Laing on Jun 9, 2010 4:09 PM

  • Rolling your own - disk array

    Hi, I am going to build my own 4 drive firewire array and need a little advice.
    I have an old SCSI enclousre with 4 removable drive trays, and I am going to rip out the guts of the thing and replace the SCSI bits with a inito2340 4 drive firewire bridgeboard (dual FW800 and single FW400 ports) and couple it with 4x300GB Maxtor PATA drives. The documentation on the bridgeboard states I can do a hardware stripe across the 4 drives for a 1.2TB striped partition.
    Has anyone else done this? If so, any suggestions? It's insanly cheap compared to the alternatives.
    ~100$ for the bridgeboard,
    70@ea for the HDD's
    SCSI enclousre for free
    so ~$350 for 1.2TB... much cheaper than buying one!
    Thanks,
    Alex
    G5 2.0DP   Mac OS X (10.4.2)  

    Hello, Welcome to the discussion boards. I have currently been working on creating custom stationery. The way I am doing it is reverse engineering what Apple has already done.
    The stationery check box you talk of is for creating stationery for the application the document was originally developed in, not for saving Mail stationery. I'm sorry if that was confusing to you.
    Apple's developer website has some great resources for creating Mail Stationery. Follow this link...
    http://developer.apple.com/documentation/AppleApplications/Conceptual/MailArticl es/Articles/stationery.html
    Also, here are a few more.
    http://theappleblog.com/2007/10/31/how-to-create-edit-your-own-mail-stationery/
    http://www.jdempsey.com/how-to-create-customized-osx-mail-stationery-in-leopard/
    I hope that helps, I am currently developing these for mh business, if you find any tricks, please repost, I found your post looking for other hints...
    thanks
    Have a great day

  • Rolling your own transactional report to replace operatorClient.jar

    I've recently been told by our ACS vendor that since we have now switched to their certificates (and not using Adobe's certs), we can no longer use the operatorClient.jar to generate transaction reports.
    Therefore, I have to roll my own transaction reports from the adept database. I'm looking for an overview of the adept database.
    Specifically, when a book is fulfilled, what tables get entries?
    When a book is re-downloaded, what data is updated?
    BTW, I have the adept schema in my Mysql Workbench EER diagram viewer.
    Thanks in advance,
    Mark Gaither
    LibreDigital Inc.

    Fulfillment is the transaction table I was thinking of.  I don't know the columns name, but if my memory isn't completely shot, the transaction id, operator id, and timestamp should be in the table.  I don't remember  however if there is a fulfillment row created for every download, or just the first.  If it is every time, then you will need to start/join with the license table which should have one entry per purchase, instead of download.
    (if you want to take this out of the forums, pm me, and I'll give you my email address)
    Also,  given what you said, I'm assuming you have already done talked to them to try to get the transaction reports, you may also want to consider reaching out to Bluefire again - with the question the way you phrased it here:
    'Since I can't get to the transaction report, what's the best way to get the information I need from my ACS4 database.'
    Sometimes asking the question differently will get better results, and I've long been a fan at the people at Bluefire, so I'd be surprised if they didn't try to help you.
    Good Luck.

  • Roll your own phone loads for CCM 5.0?

    The software download page for phone loads has packages for the 7935/7936 phones that claim to be supported on CCM 5.0
    Unfortunately the zip files only contain the .bin file and no .cop file
    Since the .cop is just a renamed .tgz file, would it be reasonable to create our own packages? It looks simple enough, just modify loads3002.txt and include the appropriate os793X.txt file.

    The .cop files are like the .exe files in Windows. Therefore you shouldn't need the .cop file in this case. You should just be able to copy the .bin file to the server in the tftp folder and make the change under the device defaults and restart the tftp service.

  • Calling SAP-script editor

    Hi all,
    I have to call one script editor with my own Text-id and text-object just like to enter header text and item text in VA01 transaction. This should be happen after pressing my own function code. Is there any possibility to do this.
    Thanks in advance,
    pavan

    Hi,
    You can't call your own Text editor from the std transaction VA01 just like that.
    In that VA01 already lot of Texts at header and Item are predefined with the related OBJECT,ID,OBJECTNAME.
    If you want you can create your own Std texts in SO10 Tcode and can call them in the Script using INCLUDE statment.
    reward if useful
    regards,
    ANJI

  • Script Editor with Adobe Interactive Forms

    Hi Everybody,
    I have an issue (i think!) with the Adobe Interactive Form Editor in my NWDS.
    I need to use some scripts in my PDF form, and i though that the script editor will be helpful, but this is disabled.
    Somebody knows how to enable it?
    If I have to validate values or calculate values in the PDF form, is this the way?
    Thank You very much for Your help.
    Regards.
    SS.

    Hi SS,
    I am not sure what do you mean by "disabled".
    But for your information script editor is enabled only for UI elements like subform, input fields, Image field etc. When you open the form the script editor is disabled. When you select some element like subform, textfield etc, its enabled for that UI element.
    If this is not your case, please let us know what all elements you have on the form.
    Regards,
    Shubham

  • Way to communicat​e with labview with my own scripting language

    Hi guys
     My objective is to design my own scripting language that can communicate(sending inputs and receiving outputs) with labView for my project. I do have little knowledge about labView . But I dont have any idea how to design scripting language or where to start learning about it since i dont have any computer science background. Can some one guide me about this?? 
    Thanks in advance

    Why do you want to design your own scripting language?  That wheel has already been invented.  There's a free Python toolkit and a Lua toolkit that you can buy to do scripting in LabVIEW.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Script editor ICM 6 - "...don't own the script lock"

    I'm running UCCE 6 (ICM 6.0) and I just installed the ICM Internet Script Editor on my computer.
    When I try to save changes to a script I get the following error:
    "You can not update the script because you don't own the script lock"
    When I open the script locks, under file/script locks, it shows that I have it open.
    We currently VNC to the HDS/AW in order to create/update scripts.
    thanks

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    I don’t know what version of ICM you're running but in my case (ver 6)  it was a security setting for my user account:
    In Configuration Manager under User List, I went to my account and I unchecked the “Read only” check box and checked the “Webview and Script Editor only” box.

  • [TUTORIAL] ADD YOUR OWN KEYBOARD SHORTCUTS TO YOUR JSX SCRIPTS

    This is for Windows only; it uses a feature to launch your favorite software via a keyboard shortcut. It’s been here for a while but it just never occurred to me to use it for this purpose.
    1.       Create a shortcut on the Desktop that points to your script.
    2.       Assign a keyboard shortcut to it. That’s it!!!!
    If you don't know how, here’s a step by step
    1.       Open the folder where all your scripts live
    2.       Right click on any of them and click on “Send to …” -> “Desktop (Create Shortcut)”
    3.       (Optional) Rename the shortcut; to help you remember it is a good practice to include the actual key combination
    4.       Right click on the shortcut, click on “Properties”
    5.       The Shortcut Key says “None”, place the cursor there and hit for example Ctrl+Alt+8
    6.       Click on “Apply” then on “Ok”
    7.       That’s it, go to Illustrator and hit your key combination.
    Notes:
    1.       Add the following line to the beginning of all your jsx scripts “#target Illustrator” (without the quotations)
    2.       If there are duplicate key combinations, your newly created shortcut will take precedence over any existing Illustrator shortcut used for something else, so…to help you see what key combos are available:
              1.       In Illustrator, go to “Edit” -> “Keyboard Shortcuts…”, then click on “Export text…”
              2.       The file is saved as a text delimited, open it with Excel or similar program to be able to sort
              3.       This is what I get, a sorted list that easily shows what’s available
    3.       If you have lost of scripts, your desktop will soon be overcrowded with icons, which many people really hate. An alternative could be to create a shortcut to the folder containing all your scripts and assign a key combination. When you’re in Illustrator and use the key combo the folder will open and you will have to double click on the file to run it. Not ideal….but your desktop will be uncluttered and is still better that going to the menus to run your scripts.
    any comments or questions are welcomed

    Carlos - it is not a windows security warning, and there is no checkbox. This is coming from extendscript (it has that icon when you alt-tab). Windows doesn't know that this is a script, the OS just launches extendscript with the file as an argument.
    The text is:
    You are about to run a script in Adobe Illustrator CS5. You should only run scripts from a trusted source. Do you want to run the script?

  • Best Practice PK Generation: 'before insert on trig' vs. rolling yer own

    Experts,
    I have a form with the standard Create/Delete/Apply Changes buttons.
    When someone hits "Create", I have a trigger that fires on the table as "before insert on". It hits a sequence to get a new primary key for the record which is about to be created.
    Another way of doing it is to run a page-level PL/SQL computation, and get SEQUENCE_NAME.Nextval, and stuff it into the appropriate page-level item. "Create" will then fire the insert after this computation and it amounts to the same thing as the trigger.
    Loaded question: Which way is better?
    My DBA recommends to "roll my own" using the page-level computation. His reasoning is if my applications scale up to a lot of users running inserts at the same time, the trigger will be a bit of a drag.
    On the other hand, I like having the trigger "on the database" and not having to worry much about it. It is one less thing that I have on my page.
    Dan

    I'm not the end-all be-all of Oracle expertise, so I
    refer to those who are:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P1
    1_QUESTION_ID:4343369880986#34562653805149
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P1
    1_QUESTION_ID:4343369880986#76218085672062
    A couple links I could quickly find on the subject.
    I'm sure there's plenty more out there.Taking Tom's answers out of context don't invalidate the problems of a trigger"less" approach.
    As to the other concerns, personally I would argue
    that a separation between application logic and GUI
    shouldn't go so far as to remove all data management
    concerns, such as using primary keys (and otherwise
    indexed fields) to access data.Still, what happens if you want to user other methods of access, for example sqlldr/external tables, ODBC/.NET, etc.?
    Also, I prefer to keep rogue applications/scripts
    away from my data if possible :). Translated: Everyone has to incorporate sequences in any INSERT statement. For BULK inserts, this maybe the way to go, but you can always check if the PK column is NULL, which should give the trigger a bit of performance improvement.
    But on the chance
    that they do go selecting from incorrect sequences it
    will be their own problem. Or your's if other applications start generating error messages.
    It'll be refused insert
    until it can (randomly, I don't care) provide a
    unique value for that column. Yay for constraints!Finding the source of the problem might be where unnecessary work has to be put in.
    I agree there are a few valid uses for such a
    trigger, I've done it myself. But on the whole, it's
    best to avoid it when possible.Can't follow your argument, really. Maybe another agree to disagree topic?
    C.

  • Web Part specific DOM Manipulation. Two identical Script Editor Web Part code blocks.

    We have a script editor web part with javascript that references some jquery libraries.  The code creates web part properties and hides  DIV tag in the web part based on some conditions.  It works great until I try to place the same exact
    web part / code block on the same page twice. The way we are rolling this out we don' t users messing the code and we want the WP properties UI to be identical on both Web Parts.
    Given all this.. is it possible with jquery code to perform Web Part specific DOM manipulation without any conflict with other similar Web Parts and Script editor code blocks on the page?  Possible to dynamically change DIV Tag IDs, Jquery Variables
    and WP Properties to have the unique web part GUID?
    Possible?  Any ideas would be appreciated.
    demo of issue here:
    http://screencast-o-matic.com/watch/coeUlneNT6
    Code in question:

    Hi,
    I suggest you debug your code using IE F12 developer tools. Based on your description, you can try to add some conditions base on the web part ID.
    Or you can share your full code for further research.
    Best Regards,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to write select statement into SCRIPT editor

    hello,
    i build a sap script for purchase order printing for exporting.
    now after all po order print fine then our client want some more should be print into layout regarding po header.
    At the soul my q is can i write select query into script editor itself.
    thanks and regards
    amit.

    You cannot write your select statement inside your SAPscript, to overcome this SAP has provided us an option of calling sub-routines.. go through the below example
    Go through this example
    Ex. SAPSCRIPT
    /: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>
    /:USING &<field name>&
    /:CHANGING &<field name1&    "It will be returned back from sub-routine
    /:ENDPERFORM
    Then create subroutine pool program(of your own name) and you have to write the code.
    FORM ><subroutine name> tables int_cond structure itcsy
    outt_cond structure itcsy.
    data : value(20), value1(20). "do your own declarations
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    *****Write your select statement
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1. 
    ENDFORM.
    Just rough idea given above.
    Regards,
    SaiRam

  • CUE Script Editor

    Hi anybody,
    Looks like my cco account cannot even download the CUE Script Editor application from the website. Can anyone provide that and zipped up ?
    Need that desperately for amend some scripting. Many Thanks

    You need to acquire the software through cisco.com for tracking purposes.
    If you don't have access to certain software on your cisco.com account, then try:
    Customer Service: 1-800-553-6387
    1) Old option- 1
    2) Then option-4
    3) Then option- 3
    4) lastly option-6
    Please note that this support is not the regular GCC support. This is
    the customer service for all issues non-techinal or semi-technical in
    nature and they use their own Service requests so do not recommend
    customer to refer TAC Sr's.

  • Put your own HTML Codes?

    Is there a way to view the html code, and then place your own code in it just like you would with dreamweaver?

    Here's what I found. Some people might find it useful.
    I wanted to include some php code in a page.
    1 Include a text box in the page design which will display the result of your code. Put some marker in the box which will be easy to find like "php-code-goes-here".
    2 Publish the site to a folder.
    3 open your html editor, I recommend bbedit.
    4 open the file for the page and search for the marker you inserted. Replace the marker with your php code.
    5 save the file, remembering to rename it with a .php extension
    6 search all the other files in that site folder for references to the original .html file and change these references to the new .php file.
    7 upload the site folder to your server. you can delete the original html file if you like.
    8 bask in the glow that comes when your app works and smile.
    I guess this will work with java script and other code as well. I don't have a .mac account so I don't know if this works or even if .mac is enabled for php.
    G4 dual 1.42   Mac OS X (10.4.4)   ibook G4

Maybe you are looking for