Viewing .swf Code Without Editing - swfupload

I have a .swf file that I want to show people. I thought it would be a good idea for them to be able to view the code, but I don't want them to be able to edit it, so then they don't mess up my work. Are there any good programs for that? I'm using windows.

Do you want .swf on website? If so you can use html code.
<!DOCTYPE html>
<html>
<body>
<embed src="helloworld.swf">
</body>
</html>

Related

Github... Background image doesn't display when I publish my site on github

I'm a beginner in web Dev.. I have a website that displays properly on localhost but when I publish and try to render it on Github, the background image doesn't show up.. What can I do to remedy this
Can you post a bit of code for us to look at?
My guess is that you have the background image referenced absolutely on the computer, and it needs to be a relative reference to render when hosted online, but I can't say for sure without having some code to look at.
A link to your github project would also help.
Edit: It looks like you perhaps renamed your startup.css to style.css and forgot to edit the html header link from startup.css, to style.css
I.e. change
<link rel="stylesheet" type="text/css" href="startup.css">
to
<link rel="stylesheet" type="text/css" href="style.css">
Previous suggestion (no longer likely):
As you mention Windows, one possibility is that you have mixed up Capital and small letters somewhere in the filename or path.
Simple web-servers on Windows are often forgiving (as is Windows filesystem) of these mistakes, while internet is not-

How can I make eclipse to give me a code that I made as a sample code?

When I made a source file in eclipse,
Eclipse gave me a sample code in it.
If i make a HTML file in Eclipse
<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>Insert title here</title>
</head>
<body>
</body>
</html>
Sample code like this came with code file.
I want to change this sample code.
How can I make eclipse to give me a code that I made as a sample code?
Open Preferences > Web > HTML Files > Editor > Templates.
Choose the appropriate 'New HTML File (xxxx)' template and click 'Edit...' to change it.

How to embed a file gist in an HTML file?

I used to embed a gist file in the HTML using code such as the following:
<script src="https://gist.github.com/4577639.js?file=hello_world_addr.wsdl"></script>
This no longer works since all the files are shown and not the individual file. Anyone knows why this happening and how to fix it? Thanks!
Here you are good sir
<script
src="https://gist.github.com/claudemamo/4577639.js?file=hello_world_addr.wsdl">
</script>

wrap code in notepad++

I love notepad++ but I dislike when someone sends me an .html or .xml file and the entire code is on one line. Is there a plugin or program that will take a one like code and indent it correctly on multiple lines?
Example:
<html><head><title></title></head><body><div></div></body><html>
<html>
<head>
<title></title>
</head>
<body>
<div>
</div>
</body>
<html>
There is an HTML tidy plugin available that correspond to your need. You can also install the TextFX plugin which adds a bunch of other enhancements.
There's a plugin named XML tool which does the pretty print for you.
Use Plugin Manager (Menu Plugins->Plugin Manager) to install it.

Problem With HTML5 Application Cache Whitelist - Won't Ignore Items

I'm trying to use HTML5 Application Cache to speed some things up on an iPhone webapp. It works great for storing images, css and JS, but the problem is that it also tries to store the HTML. I haven't been able to get it to ignore the html and stop storing it in the cache. From what I've read, I have to "whitelist" the files and directories that I want to load no matter what. I've tried listing the files I want cached explicitly, and I've tried adding a series of things under the "NETWORK:" heading. I've tried
*
/
/*
http://mysite.com
http://mysite.com/
http://mysite.com/*
None of them seem to work. Is there any way to ignore HTML files by MIME-Type or anything? Any advice would be appreciated.
Ryan
P.S. Of course, my site is not mysite.com..I just used that for simplicity.
I've avoided this problem by NOT referencing a manifest in each page, instead I have the following within each page :
<iframe src="cache.htm"></iframe> - with styles to hide the iframe
inside cache.htm I have :
<!DOCTYPE html>
<html manifest="cache.manifest">
<head>
<meta charset="UTF-8">
<title>Main Cache Resource</title>
</head>
<body></body>
</html>
based on previous tests and discussions with people in the html5 "ecosystem", each html-page that specifies a manifest is automatically cached as well.