Click to See Complete Forum and Search --> : show html code IN a html doc?
jimventola
08-22-2006, 01:24 AM
Is there some way to show html codes in the html text of a contentpane?
If I type, "Use ## to mark your page breaks," in an html file imported to a contentpane, the double hashes are not printed by the contentpane. Nor are "<html>" or </html>."
I have a list of supported html tags and can't see one for escaping the codes.
Is there a way to do it?
ant_Z
08-22-2006, 09:05 AM
maybe try html entites (?) these you can take a look here: http://webmaster.helion.pl/kurshtml/znaki/znaki.htm its in polish but thenames on entites(?) are in english too :]
w.brants
08-22-2006, 09:27 AM
The double hashes should be visible unless you used the routine to break up a text I posted a few days ago (A string used to split on doesn't end up in the splitted strings) .
If you set a html page for content, it assumes the html codes should be used for the layout of the text. If you set it as normal text content you will see the html tags inside it.
If you want to show the code in another contentpane, do it like thiscontentpane1.onTransit = function(){
contentpane2.setContent(0,contentpane1.htmlText);
}In this case contentpane1 is the one containing the formatted html text and contentpane2 shows the source.
jimventola
08-22-2006, 12:51 PM
The double hashes should be visible unless you used the routine to break up a text I posted a few days ago (A string used to split on doesn't end up in the splitted strings) .
Thanks. I did indeed use your code. Thanks to it and the contentpane, my movie will actually do double-duty. I can use it to create audio presentations for my students, but it will also be usable by people without KM to create their own presentations--they just need to use the proper names for the text and audio files to create the lessons. Since the SWF has those hard coded, it can be re-used with new media repeatedly. I am hoping teachers with no Flash experience will find it useful.
I wanted the instructions about preparing the text for display to be in "myText.html" (rather than in a text file), so users could see a working example.
Luckily, the codes linked by Ant_Z seem to work. All is well.
jimventola
08-22-2006, 12:54 PM
maybe try html entites (?) these you can take a look here: http://webmaster.helion.pl/kurshtml/znaki/znaki.htm its in polish but thenames on entites(?) are in english too :]
Thanks for that link. I was looking for just such a chart.
I didn't think it would work, but I just got a less than sign into the display. This makes it possible to include code in the contentpane.
This is so good--I want to Polka.
ant_Z
08-23-2006, 03:37 PM
This is so good--I want to Polka.
If you meant dancing, Polka came form Czech Republic and it isnt polish :) if you want, i can do a script for you (in PHP) automaticly converting html tags into entitles... allright, just make a form with textarea named "toconvert", method POST and action boom.php
boom.php code:
<?
$after = htmlspecialchars($_POST['toconvert']);
echo $after;
?>
and look at the generated page source code - only entitles :D
oh... if you meant Polka as a Polish woman, thats a good choice :] nice, intelligent and beatiful :D
jimventola
08-23-2006, 07:29 PM
Thanks for the kind offer.
I did mean the dance. From now on, I will dance the Czechia. There are even Irish polkas at this point, though.
I am only now beginning to look at Php. It would take a lot of time to learn.
I cannot actually follow this, but I think I have the general idea. What do you mean by "entites"? I can think of the word "entities," but that seems too general as it just means "beings."
I only needed to show a bit of html in the contentpane that one time, so I won't need the script for the sort of text I will be using: poems and essays, mostly. But other users of the contentpane may well want to display html tags, so making the contentpane able to handle html code is a good idea.
ant_Z
08-23-2006, 09:45 PM
It would take a lot of time to learn.
What do you mean by "entites"? I can think of the word "entities," but that seems too general as it just means "beings."
But other users of the contentpane may well want to display html tags, so making the contentpane able to handle html code is a good idea.
First thing - i would even say youre ver wrong :] saying things like "it would take a lot fo time" is bul... ekhm... ive learned PHP in about 3 days. PHP is so easy... got error? got message. message says what kind of error occurs, in which file and which line. And this is beaty of PHP. ITs got hundres of pre-defined functions, so you dont have to make them manually. Just visit http://php.net ;]
ant_Z
08-23-2006, 09:46 PM
second thing - i meat &lafglhgfgva; :) and other bushes :]
third thing: in free time ill put this script on a server and lett all users enjoy it :]
blanius
08-24-2006, 09:06 AM
Jim PHP is pretty easy to master. And there are TONS of PHP resources out there to learn from. Books, websites etc. One such that I frequent is PHPbuilder.com very good meesage board there.
jimventola
08-24-2006, 02:08 PM
Jim PHP is pretty easy to master. And there are TONS of PHP resources out there to learn from. Books, websites etc. One such that I frequent is PHPbuilder.com very good meesage board there.
Thanks, guys, for the links; I will take a look.
I recently got interested in Ruby when I stumbled on this very funny manual
http://poignantguide.net/ruby/
but php is probably more practical at this point.
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.