This Blog is dedicated to Java, Eclipse, Android, Arduino, Microcontroller and cooking.
Showing posts with label blogging. Show all posts
Showing posts with label blogging. Show all posts
Monday, January 30, 2012
Wednesday, September 21, 2011
How To Make An In-Page-Link
Linking from one web page to another is the fabric the web is made of. But sometimes this is to coars. Sometimes your informations are on just one page but heavily interrelated.
Thinking of a table of contents for a closed topic you don't want to split up into single pages because every chapter is in the size of a couple of lines.
The solution are in page links. There are two ways of doing this. The old anchor way or the new xhtml compliant way.
Old stuff first
This is not recommended anymore because not all browsers support the anchors anymore.
Place the anchor:
New XHTML Compliant
Target:
Thinking of a table of contents for a closed topic you don't want to split up into single pages because every chapter is in the size of a couple of lines.
The solution are in page links. There are two ways of doing this. The old anchor way or the new xhtml compliant way.
Old stuff first
This is not recommended anymore because not all browsers support the anchors anymore.
Place the anchor:
<a name="headline1">This Is About Deprecated Anchors</a>
Place the Link: <a href="#headline1">Anchors</a>
New XHTML Compliant
Target:
<div id="headline2">
The New Way To Code In-Page-Links
</div>
Link: <a href="#headline2">the new way</a>
Link from another web page: <a href="anotherwebpage.html#headline2">the new way</a>
Friday, September 9, 2011
How To Post Source Code In A Blog
Sourcecode Formatter
http://codeformatter.blogspot.com/2009/06/about-code-formatter.html
The result looks like this, optional you can format it with line numbers but for the reader there is no easy mechanism to remove them if he wants the lines in his project.
http://codeformatter.blogspot.com/2009/06/about-code-formatter.html
The result looks like this, optional you can format it with line numbers but for the reader there is no easy mechanism to remove them if he wants the lines in his project.
public class Robot {
private Gun gun = new Gun();
public void killAllHumans() {
gun.fire();
}
}
Subscribe to:
Posts (Atom)
