Commit 07a37ba5 authored by Jani Nikula's avatar Jani Nikula

Documentation/admin-guide: use code-block with proper language

Now that we don't have automatic syntax highlighting, use the code-block
directive with the explicitly selected language, where appropriate.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent b459106e
...@@ -66,7 +66,9 @@ other program after you have done the following: ...@@ -66,7 +66,9 @@ other program after you have done the following:
Both the javawrapper shellscript and the javaclassname program Both the javawrapper shellscript and the javaclassname program
were supplied by Colin J. Watson <cjw44@cam.ac.uk>. were supplied by Colin J. Watson <cjw44@cam.ac.uk>.
Javawrapper shell script:: Javawrapper shell script:
.. code-block:: sh
#!/bin/bash #!/bin/bash
# /usr/local/bin/javawrapper - the wrapper for binfmt_misc/java # /usr/local/bin/javawrapper - the wrapper for binfmt_misc/java
...@@ -155,7 +157,9 @@ Javawrapper shell script:: ...@@ -155,7 +157,9 @@ Javawrapper shell script::
shift shift
/usr/bin/java $FQCLASS "$@" /usr/bin/java $FQCLASS "$@"
javaclassname.c:: javaclassname.c:
.. code-block:: c
/* javaclassname.c /* javaclassname.c
* *
...@@ -378,7 +382,9 @@ added to your CLASSPATH during execution. ...@@ -378,7 +382,9 @@ added to your CLASSPATH during execution.
To test your new setup, enter in the following simple Java app, and name To test your new setup, enter in the following simple Java app, and name
it "HelloWorld.java":: it "HelloWorld.java":
.. code-block:: java
class HelloWorld { class HelloWorld {
public static void main(String args[]) { public static void main(String args[]) {
......
...@@ -31,7 +31,9 @@ other program after you have done the following: ...@@ -31,7 +31,9 @@ other program after you have done the following:
more about the configuration process. more about the configuration process.
3) Add the following entries to ``/etc/rc.local`` or similar script 3) Add the following entries to ``/etc/rc.local`` or similar script
to be run at system startup:: to be run at system startup:
.. code-block:: sh
# Insert BINFMT_MISC module into the kernel # Insert BINFMT_MISC module into the kernel
if [ ! -e /proc/sys/fs/binfmt_misc/register ]; then if [ ! -e /proc/sys/fs/binfmt_misc/register ]; then
......
...@@ -78,7 +78,9 @@ Setting the ramoops parameters can be done in several different manners: ...@@ -78,7 +78,9 @@ Setting the ramoops parameters can be done in several different manners:
}; };
C. Use a platform device and set the platform data. The parameters can then C. Use a platform device and set the platform data. The parameters can then
be set through that platform data. An example of doing that is:: be set through that platform data. An example of doing that is:
.. code-block:: c
#include <linux/pstore_ram.h> #include <linux/pstore_ram.h>
[...] [...]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment