知識、感動をみんなと同期(Sync)するブログ

Highlight.jsの言語別のハイライトデモ

Highlight.jsで、言語別にどのようなシンタックスハイライトになるのかのデモンストレーションです。

ハイライト

Makefileのコードをハイライトしたデモです。コードはこちらのウェブページのものを利用させていただきました。

# Define the symbols we might want to change:
CXX := c++
CXXFLAGS := -g
OBJECTS     := processing.o gui.o 
my_program: $(OBJECTS) 
    $(CXX) $(OBJECTS) -o my_program
processing.o: processing.cxx 
    $(CXX) $(INCLUDES) $(CXXFLAGS) -c processing.cxx -o processing.o
gui.o: gui.cxx 
    $(CXX) $(CXXFLAGS) -c gui.cxx -o gui.o

CC      := cc               # The C compiler.
CFLAGS  := -g               # C compilation options which relate to
                            # optimization or debugging (usually
                            # just -g or -O).  Usually this wouldn't
                            # include -I options to specify the
                            # include directories, because then you
                            # couldn't override it on the command line
                            # easily as in the above example.
CXX      := c++             # The C++ compiler.  (Sometimes "CPP" instead
                            # of CXX.)
CXXFLAGS := -g              # C++ compilation options related to
                            # optimization or debugging (-O or -g).
F77      := f77             # The Fortran compiler.
FFLAGS   :=                 # Optimization flags for Fortran.