Html code without be interpreted
Hi,
How can I write html code without be interpreted. I want to write a header like:
* @param html A text like <div>hello</div>
and I want that JavaDoc doen't interprets <div> as HTML.
How can I do it?
Thanks a lot for helping me :)
Cheers
Two options that I can think of:
& lt;div& gt;hello& lt;/div& gt; (spaces were added so that the text is rendered)
{@literal <div>hello</div>} (if you are using java 1.5 or newer)
Similar Messages
-
How to see html code in a php file using CS5.5 without using testing server?
In CS5.5 when I open a page with php extention, DW does not show any html code in design view without me having to set up a testing server. In DW 8 it would open the same files and show me the html in design view. I have no need to test php code, I just need to alter the html. Is there a setting I can change to enable this in CS5.5? Thanks.
Below is the code. I discovered that if I create a new php document not from
a template, then I can see the html elements in design view. If I create a
new page from a template and save it as html, design view still works, but
if I save a new page from template and save it as php, I only see symbols
for php and nothing else in design view.
Thanks for your help on this.
<!--
body
/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to
zero padding and margin on lists. For consistency, you can either specify
the amounts you want here, or on the list items (LI, DT, DD) they contain.
Remember that what you do here will cascade to the .nav list unless you
write a more specific selector. */
padding: 0;
margin: 0;
h1, h2, h3, h4, h5, h6, p {
margin-top: 0; /* removing the top margin gets around an issue where
margins can escape from their containing div. The remaining bottom margin
will hold it away from any elements that follow. */
padding-right: 15px;
padding-left: 15px; /* adding the padding to the sides of the elements
within the divs, instead of the divs themselves, gets rid of any box model
math. A nested div with side padding can also be used as an alternate
method. */
a img { /* this selector removes the default blue border displayed in some
browsers around an image when it is surrounded by a link */
border: none;
/* ~~ Styling for your site's links must remain in this order - including
the group of selectors that create the hover effect. ~~ */
a:link
a:visited
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard
navigator the same hover experience as the person using a mouse. */
text-decoration: none;
/* ~~ This fixed width container surrounds all other divs ~~ */
.container
/* ~~ The header is not given a width. It will extend the full width of your
layout. It contains an image placeholder that should be replaced with your
own linked logo. ~~ */
.header
/* ~~ These are the columns for the layout. ~~
1) Padding is only placed on the top and/or bottom of the divs. The elements
within these divs have padding on their sides. This saves you from any "box
model math". Keep in mind, if you add any side padding or border to the div
itself, it will be added to the width you define to create the *total*
width. You may also choose to remove the padding on the element in the div
and place a second div within it with no width and the padding necessary for
your design.
2) No margin has been given to the columns since they are all floated. If
you must add margin, avoid placing it on the side you're floating toward
(for example: a right margin on a div set to float right). Many times,
padding can be used instead. For divs where this rule must be broken, you
should add a "display:inline" declaration to the div's rule to tame a bug
where some versions of Internet Explorer double the margin.
3) Since classes can be used multiple times in a document (and an element
can also have multiple classes applied), the columns have been assigned
class names instead of IDs. For example, two sidebar divs could be stacked
if necessary. These can very easily be changed to IDs if that's your
preference, as long as you'll only be using them once per document.
4) If you prefer your nav on the right instead of the left, simply float
these columns the opposite direction (all right instead of all left) and
they'll render in reverse order. There's no need to move the divs around in
the HTML source.
/* sidebar1 = left */
.sidebar1
.content
.sidebar2
/* ~~ This grouped selector gives the lists in the .content area space ~~ */
.content ul, .content ol
/* ~~ The navigation list styles (can be removed if you choose to use a
premade flyout menu like Spry) ~~ */
ul.nav {
list-style: none; /* this removes the list marker */
border-top: 1px solid #666; /* this creates the top border for the
links - all others are placed using a bottom border on the LI */
margin-bottom: 15px; /* this creates the space between the navigation on
the content below */
ul.nav li {
border-bottom: 1px solid #666; /* this creates the button separation */
ul.nav a, ul.nav a:visited { /* grouping these selectors makes sure that
your links retain their button look even after being visited */
padding: 5px 5px 5px 15px;
display: block; /* this gives the anchor block properties so it fills
out the whole LI that contains it so that the entire area reacts to a mouse
click. */
width: 160px; /*this width makes the entire button clickable for IE6.
If you don't need to support IE6, it can be removed. Calculate the proper
width by subtracting the padding on this link from the width of your sidebar
container. */
text-decoration: none;
background: #C6D580;
ul.nav a:hover, ul.nav a:active, ul.nav a:focus { /* this changes the
background and text color for both mouse and keyboard navigators */
background: #ADB96E;
color: #FFF;
/* ~~ The footer styles ~~ */
.footer
/* ~~ Miscellaneous float/clear classes ~~ */
.fltrt { /* this class can be used to float an element right in your page.
The floated element must precede the element it should be next to on the
page. */
float: right;
margin-left: 8px;
.fltlft { /* this class can be used to float an element left in your page.
The floated element must precede the element it should be next to on the
page. */
float: left;
margin-right: 8px;
.clearfloat { /* this class can be placed on a
or empty div as the
final element following the last floated div (within the .container) if the
.footer is removed or taken out of the .container */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
TD.mincart {
font-size: 10px;
font-family : Verdana;
position:relative:
left: 10px;
top: -30px;
P.mincart {
font-size: 10px;
font-family : Verdana;position:relative:
left: 10px;
top: -30px;
#search
#minicartdiv
P.smaller{
text-align:center;
font-size: 12px;
position: relative;
top: 1px;
#tagline {
font-weight: bold;
color: #03F;
height: 18px;
width: 350px;
font-size: 18px;
position: relative;
left: 10px;
padding-bottom: 10px;
#contact {
font-size: 12px;
float: right;
height: 18px;
position: relative;
padding-right: 10px;
font-weight: bold;
font-family: "Courier New", Courier, monospace;
padding-top: 7px;
Call 541-424-5555 Mon-Fri 7am-4pm Pacific Time. Email:
[email protected]
Bluetooth and More! No Sales Tax!
body, this
is a test
[Home | index.php] - Store Policies - Products
- Search - Checkout
email: [email protected] Call
541-424-5555</p>
<!-- end .footer --></div>
<!-- end .container --></div>
SSL
COT("images/cot.gif", "SC2", "none");
</html -
Html code i have saved in TextEdit as .html is not interpreted by Safari
I have entered simple html code in a new TextEdit.app document,
saved it as web page (.html),
opened as a file from Safari and the
exact contents of the file are shown in my browser window
... it is not interpreted.
(I was following a "create your first html..." tutorial)use textedit-format-Make Plain Text or set the preferences for New Document accordingly
then save-as html will be unavailable, but you can name the file something.html & Safari should display as expected. -
Preview css code without html??
I am learning CSS and very slowly.
I would like to know if there is any way that I can "see" if my css code is working the way I want it to.
Since there is no display in CSS , only html, I'm guessing I have to link the CSS to the html in order to see
if the CSS code is working the way I want.
Is there an easier way to "try out" css code?
Perhaps another way to get it to display without linking it to an html file?
Maybe there is another program that will let one "view" css code?
Maybe something online that will do this?
I really could use something like this.
Otherwise, can someone tell me, in the most basic, simple terms, how I can link my Css code page
to an html page, so i can preview if my CSS code is doing what it's supposed to?
thanks!!!!!I hope this makes sense. thanks again!
Not really. I don't understand the workflow you're attempting.
CSS formats HTML pages. I link one external CSS stylesheet to all my HTML pages then tweak the CSS in the external CSS file and "see" the results of my tweaks on the HTML page I'm actually formatting.
In other words, I preview my changes on the HTML page which is actually linked to the CSS stylesheet.
You seem to be wanting to set up your CSS in isolation to your HTML page then, when you've got it right, you want to apply the CSS to the actual HTML page.
Am I missing something?
These are some of the ways I think might work:
<td><span style=”background-color:yellow”>Breakfast</span>..</td>
<td style=”background-color:yellow”>Breakfast</span>...</td>
<td><span style=”bgcolor:yellow”>Breakfast</span>..</td>
<td><span style=”color:yellow”>Breakfast</span>..</td>
but I need to try them all to see which is the one that will give me the desired result (highlight the word Breakfast in yellow).
You've lost me here I'm afraid. Why not let DW do the coding for you?
e.g. <span style=”bgcolor:yellow”> is invalid CSS code. DW will code it for you.
Avoid inline styles <td style=”background-color:yellow”> and <span>s wherever possible. Use them in an emergency only when no other option exists. Otherwise, every time you tweak a color, you have to update every single affected <td> and <span> tag which defeats the reason for using CSS in the first place.
CSS can be applied in several ways. In order of preference:
1) External, linked styesheet (preferred option every time)
2) Embedded stylesheet (rules grouped into the <head> section of a HTML page)
3) Inline styles (CSS inline with the HTML code scattered throughout the page) - emergencies only or where no other options exist such as HTML email formatting
You're starting with option 3) and making life hard for yourself.
It's more powerful and efficient to define a CSS class for a highlighted table cell - in an external stylesheet which is linked to the HTML page:
e.g.
Separate CSS file
td.highlight {
background-color: yellow;
HTML (with CSS file linked to it)
<td class="highlight">Breakfast</td>
You can do this for all highlighted <td>s on all HTML pages on your website - be it one or 1000.
Later, if you want to change yellow to green, you change the CSS rule in the external CSS stylesheet (you don't have to touch the HTML file at all):
td.highlight {
background-color: green;
upload that one tiny stylesheet file to the server and your entire website (all 1000 pages) is instantly updated. -
What can replace the hit counter - preferably one without ads - an html code?
I'm looking for some html code for a hit counter to replace the one from iweb.
The free sources all have ads associated with them.Statcounter is kind of overkill for most websites much like Google Analytics.
You will get a link to a whole bunch of simple hit counters on this page...
http://www.iwebformusicians.com/Search-Engine-Optimization/Statistics.html
Am I the only person on the planet that uses the web server stats like Webalizer? No code required and even I can make sense of them! -
hi,
i have the macromedia flash professional 8, and i'm building
a web site in flash. Although i have some questions:
1-
I want to put a counter, a mp3 player and a mailing list code
that is in HTML code how can i do it?
example of the code of the counter:
<!-- Start Bravenet.com Service Code -->
<script language="JavaScript" type="text/javascript" src="
http://pub8.bravenet.com/counter/code.php?id=395396&usernum=635540990&cpv=2">
</script>
<!-- END DO NOT MODIFY -->
the other codes are similar to this.
2-
I want to put a scroll bar in my flash website how can i do
it?
let me know i'm realy newbie.
thanks a lotdavidrasta,
> i have the macromedia flash professional 8, and i'm
> building a web site in flash.
Okay.
> I want to put a counter, a mp3 player and a mailing list
> code that is in HTML code how can i do it?
Ah. Well, it's important to realize the difference between a
browser
and the Flash Player plug-in. Browsers download files and
display them
based on HTML. Most browsers have a JavaScript engine, which
is required,
of course, for interpreting JavaScript. In fact, having a
JavaScript engine
is a bit like having the Flash Player plug-in: without it,
you can't
display media of the relevant sort.
The Flash Player does not provide a JavaScript engine.
Flash's language
is ActionScript. So code like this ...
> example of the code of the counter:
>
> <!-- Start Bravenet.com Service Code -->
> <script language="JavaScript" type="text/javascript"
> src="
http://pub8.bravenet.com/counter/code.php?id=395396&usernum=635540990&cpv=2
> ">
> </script>
... simply won't run in a Flash movie because there's nothing
to run it.
You'll either have to use one of the ActionScript solutions
for posting
variables (such as loadVariables() or the LoadVars class) --
and even that
may not work, because I'm guessing the bravenet.com PHP form
returns data
relevant to JavaScript -- or leave room in your HTML code for
both a SWF
file (your Flash movie) and such JavaScript snippets.
> I want to put a scroll bar in my flash website how
> can i do it?
Look in your Components panel and use the ScrollPane
Component.
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design." -
My report table include column with HTML format such as
<a target="_blank" href="tableA.url">tableA.url</a>
It works fine in dashbaord: I see the URL and when click on it, I got the URL in new window.
When I export to PDF, the resulting PDF display the HTML code and not just the URL.
Any ideas?user8257465 wrote:
Hi,
I tried to achieve this before without success. My conclussion was that the pdf converssion engine that OBIEE uses is not able to generate HTML code inside the pdf.
Me too I will like to know if someone achieved this.
Thanks,Unfortunately, your assessment is correct: when printing to pdf, the HTML codes are exposed rather than maintaining the functionality of the coding. -
How can I make my XSLT processor accept html code ?
In my applications the Oracle xslt processor wont accept simple HTML tags within an XML source while transforming the source into HTML. Both processors either will throw parser exceptions or ignore the HTML code in the XML source completely, though output-escaping is explicitly enabled.
In detail, I want to transform an XML source like this...
<element>
Hello, this is a <b>XML</b> text source mingled with html<sup>TM</sup>
</element>
... with an XSL Stylesheet like this...
<xsl:stylesheet>
<xsl:output method=html cdata-sections=element/>
<xsl:template match=element>
<html>
<body>
<xsl:value-of select=. output-escaping=yes/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
... which should result in a HTML code like this ...
<html>
<body>
Hello, this is a <b>XML</b> text source mingled with html<sup>TM</sup>
</body>
</html>
The result, however, is always like this:
<html>
<body>
Hello, this is a XML text source mingled with htmlTM
</body>
</html>
This means that the additional HTML tags inside the XML source have been completely ignored by the XSLT processor though I enabled the output-escaping.
If anybody should think now that mingling HTML with XML text is stupid because I could also format the result with the XSL Stylesheet itself, he might be right, of course, but: I cant avoid this because in my application the XML source results from a users web form entry. The user working with the form must be able to decide whether he wants to include HTML in his text or not. In any case, any HTML code he enters should just be transported WITHOUT ANY CHANGES to the resulting HTML page, not omitted without comments! It seems quite simple to me, but the XSLT processor doesnt want to agree with me in this point :-(
So, once again in brief: Is there any possibility to tell my XSLT processor not to parse, transform or manipulate HTML tags, but to transport them unchanged to the output ?
After weeks of research any helping sign would be a great relief...
Many thanks in advance.I don't understand the answer, can you please expand. I am trying to do a similar thing by creating an output buffer,
assemble a mix of text and html tags and then output this buffer later. All of the html tags are skipped or re-escaped in the final html:
In this example I want to print the IPRCROP, then add an html break (<br>).
Example 1. Use xsl:text with escape = yes
<xsl:variable name="buffy">
<xsl:for-each select="documents/document">
<xsl:value-of select="IPRCROP"/>
<xsl:text disable-output-escaping="yes"><br></br></xsl:text>
</xsl:for-each>
</xsl:variable>
<xsl:value-of select="$buffy"/>
In this case the <br> and </br> end up re-escaped in the output html as #60 etc. so they appear literally as
ALFALFA <br> BARLEY <br>
and in source as: ALFALFA< br > < /br >BARLEY
Example 2, try as pure text, it just skips the <br></br> altogether
<xsl:variable name="buffy">
<xsl:for-each select="documents/document">
<xsl:value-of select="IPRCROP"/>
<xsl:text><br></br></xsl:text>
</xsl:for-each>
</xsl:variable>
<xsl:value-of select="$buffy"/>
output = ALFALFABARLEY -
How do I see the HTML code of my web page?
How do I see my web page's HTML code? I want to install Google Analytics and I have to insert the tracking code into a certain part of the web page's HTML code, but iWeb doesn't show me the code to manually manipulate it.
Is this even possible? I am looking for a view that shows me all the code and can't find it.You'll see the HTML after publishing the pages.
Here's a way to add Google Analytics :
[Adding Google Analytics without editing the webpage|http://www.wyodor.net/blog/archives/2010/05/entry_316.html]
And if you search this forum you'll also find answers : [google analytics|http://discussions.apple.com/search.jspa?objID=c188&search=Go&q=googl e+analytics] -
How to display a html file without tags?
Hello,
I am new for Java programming. Now i have to display a html file without all the tags. My code is the fllowing:
u = new URL("http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=protein&val=55584070");
BufferedReader in = new BufferedReader(new InputStreamReader(u.openStream()));
while ((s = in.readLine()) != null) {
System.out.println(s);
in.close();
Unforturnately, the output is the soucecode of the html file and I just want the content.
Please help me.
Thanks a lot in advance,
DanicaHere's a simple example
http://forum.java.sun.com/thread.jspa?threadID=293830
I haven't tested it, but I bet camickr did. -
While in edit mode in the Moodle course management system, the Page Content window should display the page as it will appear to the user. If you click on the "Edit" button, you are able to view the HTML code for the page. However, when you return to the normal display mode, the page is blank. This has occurred after the upgrade to Firefox 11.0. Page is normally rendered in Internet Explorer.
A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
See:
*https://support.mozilla.org/kb/Server+not+found
*https://support.mozilla.org/kb/Firewalls
See also:
*http://kb.mozillazine.org/Error_loading_websites
*https://support.mozilla.org/kb/Error+loading+web+sites -
Extract article from HTML code
Hi,
I'm trying to build a search engine for an RSS feed. Thing is i'm trying to store every article as a BLOB field in the database. To optimize my search i'll need to extract the article only and nothing else (no unrelated hyperlinks or html code)
I'm using the HTMLEditoKit of swing to get the html content without the code, but that's not enough. I need to clean the page of things like headers and footers (they affect the search results)i already parsed the XML in the RSS...i've got informa ; the problem is the article itself
Take this article for example: [http://news.bbc.co.uk/2/hi/europe/7572635.stm] , you've got the article, but you've things all around it from link to different articles to headers, footers menus.
All of this affects the search results dramatically so i just want the article itself.
that's the greatest challenge. -
Hub transport raw HTML code displays when iOS client used to send message
Has anyone else encountered (and hopefully fixed) this problem? I use HTML coding to format the signatures for my staff at the hub transport rule level. Here's an example:
<br><p style='font-size:12pt; font-family:"Arial","sans-serif"'><b>%%CustomAttribute1%%</b><br>
%%Title%%<br>
Tel: %%PhoneNumber%%<br>
Fax: %%FaxNumber%%<br>
%%Email%%<br><br>
<img border=0 width="240" height="62" src="http://wiglefamily.net/CABVI/CABVILogo.jpg" alt="CABVI Logo"><br>
<a href="www.cincyblind.org">www.cincyblind.org</a></p>
<p style='font-size:8pt;font-family:"Arial","sans-serif"'>Disclaimer: The information contained in this electronic mail message may be confidential and protected information intended only for the use of the individual or entity
named above. As the recipient of this information you may be prohibited by State and Federal law from disclosing this information to any other party without specific written authorization from the individual to whom it pertains. If you have received
this communication in error, please notify us immediately and destroy the message and its attachments. </p>
It looks great when I sent from Outlook or even Android mail clients. However, when sent from iOS mail clients I get the following in the signature:
<html>
<body>
Michael Wigle IT Manager Tel: 513-487-4243 Fax: 513-221-2995
[email protected] [CABVI Logo] www.cincyblind.org Disclaimer: The information contained in this electronic mail message may be confidential and protected information intended only for the use of the
individual or entity named above. As the recipient of this information you may be prohibited by State and Federal law from disclosing this information to any other party without specific written authorization from the individual to whom it pertains.
If you have received this communication in error, please notify us immediately and destroy the message and its attachments.
</body>
</html>
As you can see, the raw HTML code shows but the AD variables populate correctly. Any ideas on a solution for this problem?See this for the pipeline tracing:
http://technet.microsoft.com/en-us/library/bb125198(v=exchg.80).aspx
There's a link in that article that takes you to:
http://technet.microsoft.com/en-us/library/bb125018(v=exchg.80).aspx
FYI, I think you're still a bit confused. Once again you said *from* when you meant *to*! :-)
--- Rich Matheisen MCSE&I, Exchange MVP -
How can I write HTML code in this forums
Sorry but I didn't know where to post this thread.....
How can I write HTML code in this forums?Hello,
Every piece of code in your post should be wrapped with the forum tags [ code] and [ /code], without the blanks.
In case of the <a> tag, that is not enough. In this case, you have several options. The most elegant one is to use the entity name for the less-then sign - & lt; - without any spaces. Other options is to add a space between the less-then and the ‘a’ character (and make a note of it) or change the less-then character with a left bracket one.
When posting code, you should always use the forum preview option, just to make sure the forum software “understood” your code correctly.
Hope this helps,
Arie. -
How to generate html-code using csv input with JSP or JAVA???
Hello,
I want to read out a .csv-file and generate html-code dynmically with JSP in an EP6 Application. The problem is, that the csv-file cant be located or openend.
BTW if every knows a good tutorial or weblog for this, please post the link.
Its located in a par-archive under:
/>dist>files
I tried various methods, in the doContent mehtod or with JSP. Everytime same result.
Here part of the code I tried in the doContent():
public class CSV extends AbstractPortalComponent
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
String strWRoot = request.getWebResourcePath();
String contentCSV="", line="";
String linesep = System.getProperty("line.separator");
File fileLoadCSV = new File(strWRoot+"/files/ma_infosysteme.csv");
boolean exCSV = fileLoadCSV.exists();
boolean reCSV = fileLoadCSV.canRead();
int a=0;
if(exCSV&&reCSV){
response.write("ok");
try {
BufferedReader inputCSV = new BufferedReader(new FileReader(fileLoadCSV));
while((line=inputCSV.readLine())!=null){
contentCSV=contentCSVlinelinesep;
a++;
inputCSV.close();
catch(IOException ioex){
System.out.println("Fehler");
else {
response.write("not ok");
response.write("<br>Wroot: "+strWRoot);
response.write("<br>File: "+fileLoadCSV);
response.write("<br>exists: "+exCSV);
response.write("<br>read: "+reCSV);
response.write("<br>Input: "+contentCSV);
The Output is:
not ok
Wroot: /irj/portalapps/DHTML
File: \irj\portalapps\DHTML\files\ma_infosysteme.csv
exists: false
read: false
Input:
So thanks to everyone who can give me a good hint.
Bye.Without really looking too much into this it looks like the problem is with the way in which you are trying to open the file. I believe that when creating a File object you need to use a physical path. By using the getWebResourcePath() method you are retrieving the URL to this file and not the physical path name. There is another method (can't remember the exact name) called getPublicResourcePath() (or something similar) which will return the physical path to this file, i.e. c:\usr\sap\.....etc. If you try it this way it may well work
I hope this helps
D
Maybe you are looking for
-
Error while Importing MDL File
Hi All, While Importing a MDL File, I am getting the following Error. Can someone help me asap. mport started at Apr 6, 2010 10:20:09 AM Project "PUBLIC_PROJECT" Error occurred importing from file "C:\oracle\product\10.2.0\db_2\owb\bin\admin\ETLDEV-2
-
How do I save my pictures from iPhoto on my time capsule and not on my computer to save space?
I have over 10,000 pictures in iphoto library. I am getting an error constantly that my start up disk is low on space. I have a time capsule but how do I get my photo's from my iphoto library to ONLY save on the time capsule so that it doesn't take u
-
Hi, Regarding workflow, is the standard workflow in SAP activated when you installed SAP? eg price error or updating error will generate a message to User's inbox? or do we need to activate anything in SAP in order for the workflow to work? Pls advic
-
Web.xml related problem
Hi, user.do should take me to UserServlet. *.do(except user.do) should take me to ActionServlet. Can anyone tell me how I map this in web.xml Thanks.
-
I recently ran into some trouble with Photoshop CS4, and decided to uninstall and then reinstall in the hopes it would solve the problem. I was able to uninstall Photoshop, but I've been having a problem re-installing. The Application 1 disk runs fin