Skip to content

Commit 7115db2

Browse files
committed
use java syntax highlighting
1 parent 62a70b6 commit 7115db2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

structure/firststeps.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ First Steps
55

66
The simplest way to load a PDB file is by using the [StructureIO](http://www.biojava.org/docs/api/org/biojava3/structure/StructureIO.html) class.
77

8-
<pre>
8+
```java
99
public static void main(String[] args){
1010

1111
try {
@@ -16,7 +16,7 @@ The simplest way to load a PDB file is by using the [StructureIO](http://www.bio
1616
e.printStackTrace();
1717
}
1818
}
19-
</pre>
19+
```
2020

2121
BioJava automatically downloads the PDB file for hemoglobin [4HHB](http://www.rcsb.org/pdb/explore.do?structureId=4HHB) and copies it into a temporary location. Then the PDB file parser loads the data into a [Structure](http://www.biojava.org/docs/api/org/biojava/bio/structure/Structure.html) object, that provides access to the content in the file. (If you call this a second time, BioJava will automatically re-use the local file.)
2222

@@ -53,7 +53,7 @@ Talking about startup properties, it is also good to mention the fact that many
5353

5454
If you have the *biojava-structure-gui* module installed, you can quickly visualise a [Structure](http://www.biojava.org/docs/api/org/biojava/bio/structure/Structure.html) via this:
5555

56-
<pre>
56+
```java
5757
public static void main(String[] args){
5858

5959
try {
@@ -73,7 +73,7 @@ If you have the *biojava-structure-gui* module installed, you can quickly visual
7373
e.printStackTrace();
7474
}
7575
}
76-
</pre>
76+
```
7777

7878
This will result in the following view:
7979

@@ -92,7 +92,7 @@ This will result in the following view:
9292

9393
By default many people work with the *asymmetric unit* of a protein. However for many studies the correct representation to look at is the *biological assembly* of a protein. You can request it by calling
9494

95-
<pre>
95+
```java
9696
public static void main(String[] args){
9797

9898
try {
@@ -103,7 +103,7 @@ By default many people work with the *asymmetric unit* of a protein. However for
103103
e.printStackTrace();
104104
}
105105
}
106-
</pre>
106+
```
107107

108108
This topic is important, so we dedicated a [whole chapter](bioassembly.md) to it.
109109

0 commit comments

Comments
 (0)