Inserting code into pages?

I have snippets of code, like for stat trackers and skype icons, and I can't figure out how to insert the code into pages without having to first export it into html, view source, import the source into NVU and then save it again. This is a big hassle to go through whenever I change the page, and I am wondering if there is a way to put the code directly into the pages document itself. Appreciate any answers.

Mac OS X (10.4.5)

Posted on Mar 30, 2006 10:34 AM

Reply
5 replies

Apr 1, 2006 12:46 PM in response to Jeff Decker

Absolutely. Leave feedback at http://www.apple.com/feedback/pages.html

You definitely should leave feedback, but I'm not sure how good the chances are. Apple seems to go with iWeb ( http://www.apple.com/ilife/iweb/ ) for this kind of functionality. Pages is more of a word processor which happens to be able to export the documents as html copies as well. It is not targeted for cases where html is the main output.

Mar 31, 2006 1:03 AM in response to Jeff Decker

Hello Jeff,

you can drag and drop every text or image from any app you can select this media into Pages directly. I don't know about what you are writing (code for stat trackers?; code for skype icons?), because I haven't seen such code. Have you tried the drag and drop thing? If yes, can you describe with what you are displaying this code first? I think you have tried copy and paste?

User uploaded file

Apr 1, 2006 12:30 PM in response to FrankBe

Copy and paste definitely does not work... Here is the code:
<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project=1382179;
var sc_invisible=0;
var sc_partition=12;
var sc_security="3cd1b24a";
</script>
<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript> User uploaded file </noscript>
<!-- End of StatCounter Code -->

Is there any way to make this into an image without losing any of its properties (I have found ways to make this into an image, but it loses all the code behind it and becomes a "dumb" image).

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Inserting code into pages?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.