<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<head>
<style>.content {
padding: 20px;
height: 100%;
width: 944px;
margin-left: auto;
margin-right: auto;
}
.fold {
width: 20px;
float: left;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.number {
width: 45px;
float: left;
margin-right: 10px;
text-align: right;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.line {
}
.content {
font-family: "Monospace";
font-size: 1em;
background: #3f3f3f;
color: White;
width: 944px;
padding: 20px;
height: 100%;
margin-left: auto;
margin-right: auto;
}
font.Alert {
color: Yellow;
font-weight: bold;
}
font.Annotation {
color: Yellow;
font-style: italic;
}
font.Attribute {
color: LightPink;
}
font.BaseN {
color: Gold;
}
font.BuiltIn {
color: Coral;
}
font.Char {
color: Cyan;
}
font.Comment {
color: Beige;
font-style: italic;
}
font.CommentVar {
color: LightBlue;
font-style: italic;
}
font.Constant {
color: White;
font-weight: bold;
}
font.ControlFlow {
color: DeepPink;
}
font.DataType {
color: CadetBlue;
}
font.DecVal {
color: MediumPurple;
font-weight: bold;
}
font.Documentation {
color: Gold;
font-style: italic;
}
font.Error {
color: Red;
font-weight: bold;
}
font.Extension {
color: DarkGray;
font-weight: bold;
}
font.Float {
color: DarkViolet;
font-weight: bold;
}
font.Function {
color: RosyBrown;
}
font.Import {
color: PaleVioletRed;
}
font.Information {
color: LightGreen;
font-style: italic;
}
font.Keyword {
color: LightGreen;
font-weight: bold;
}
font.Normal {
color: White;
}
font.Operator {
color: Magenta;
}
font.Others {
color: GreenYellow;
}
font.Preprocessor {
color: DarkSeaGreen ;
font-weight: bold;
}
font.RegionMarker {
color: Plum;
}
font.SpecialChar {
color: Plum;
font-weight: bold;
}
font.SpecialString {
color: LightBlue;
}
font.String {
color: MediumAquaMarine;
}
font.Variable {
color: Turquoise;
font-weight: bold;
}
font.VerbatimString {
color: LightSkyBlue;
}
font.Warning {
color: Brown;
font-weight: bold;
}
</style>
<title>Kamelon output</title>
</head>
<body>
<div class="content">
<div id="1" class="line"><font class="Comment">#this CMakeLists.txt doesn't do anything useful, but it shoudl demonstrate the cmake syntax highlighting</font></br></div>
<div id="2" class="line"><font class="Comment">#Alexander Neundorf <neundorf@kde.org></font></br></div>
<div id="3" class="line"></br></div>
<div id="4" class="line"><font class="Comment">#ok this is a comment</font></br></div>
<div id="5" class="line"><font class="Comment">#and another line</font></br></div>
<div id="6" class="line"><font class="Comment">#a built-in command, it's bold black</font></br></div>
<div id="7" class="line"><font class="Function">ADD_DEFINITIONS</font><font class="Normal">(-Wall -Wctor-dtor-privacy -Woverloaded-virtual -Wno-long-long -pipe -fno-builtin -fno-exceptions)</font></br></div>
<div id="8" class="line"></br></div>
<div id="9" class="line"><font class="Comment">#and another function</font></br></div>
<div id="10" class="line"><font class="Function">INCLUDE_DIRECTORIES</font><font class="Normal">(</font></br></div>
<div id="11" class="line"><font class="Comment">#comments are also highlighted inside function parameters</font></br></div>
<div id="12" class="line"><font class="Comment">#variables are blue</font></br></div>
<div id="13" class="line"><font class="Variable">${CMAKE_CURRENT_SOURCE_DIR}</font><font class="Normal">/../../lib/qt4/include/Qt </font></br></div>
<div id="14" class="line"><font class="Normal">)</font></br></div>
<div id="15" class="line"></br></div>
<div id="16" class="line"><font class="RegionMarker"># BEGIN defining a macro</font></br></div>
<div id="17" class="line"><font class="Keyword">MACRO</font><font class="Normal">(ECOS_ADD_EXECUTABLE _exe_NAME )</font></br></div>
<div id="18" class="line"></br></div>
<div id="19" class="line"><font class="Comment">#special parameters are italic, see the STATIC in the next line</font></br></div>
<div id="20" class="line"><font class="Function">ADD_LIBRARY</font><font class="Normal">(</font><font class="Variable">${_exe_NAME}</font><font class="Normal"> STATIC </font><font class="Variable">${ARGN}</font><font class="Normal">)</font></br></div>
<div id="21" class="line"><font class="Comment">#but not in the following line ?</font></br></div>
<div id="22" class="line"><font class="Normal"> </font><font class="Function">ADD_LIBRARY</font><font class="Normal">(</font><font class="Variable">${_exe_NAME}</font><font class="Normal"> STATIC </font><font class="Variable">${ARGN}</font><font class="Normal">)</font></br></div>
<div id="23" class="line"></br></div>
<div id="24" class="line"></br></div>
<div id="25" class="line"><font class="Comment">#another command with a bunch of variables and special parameters </font></br></div>
<div id="26" class="line"><font class="Normal"> </font><font class="Function">ADD_CUSTOM_COMMAND</font><font class="Normal">(</font></br></div>
<div id="27" class="line"><font class="Normal"> TARGET </font><font class="Variable">${_exe_NAME}</font><font class="Normal"> </font></br></div>
<div id="28" class="line"><font class="Normal"> PRE_LINK </font></br></div>
<div id="29" class="line"><font class="Normal"> COMMAND </font><font class="Variable">${CMAKE_C_COMPILER}</font><font class="Normal"> </font></br></div>
<div id="30" class="line"><font class="Normal"> ARGS -o </font><font class="Variable">${_exe_NAME}</font><font class="Normal"> </font></br></div>
<div id="31" class="line"><font class="Normal">$\(</font><font class="Variable">${_exe_NAME}</font><font class="Normal">_SRC_OBJS\) -nostdlib -nostartfiles -Lecos/install/lib -Ttarget.ld</font></br></div>
<div id="32" class="line"><font class="Normal"> )</font></br></div>
<div id="33" class="line"></br></div>
<div id="34" class="line"><font class="Comment">#add the created files to the make_clean_files</font></br></div>
<div id="35" class="line"><font class="Normal"> </font><font class="Function">SET</font><font class="Normal">(ECOS_ADD_MAKE_CLEAN_FILES </font><font class="Variable">${ECOS_ADD_MAKE_CLEAN_FILES}</font><font class="Normal">;</font><font class="Variable">${_exe_NAME}</font><font class="Normal">;)</font></br></div>
<div id="36" class="line"><font class="Comment">#and another command... </font></br></div>
<div id="37" class="line"><font class="Normal"> </font><font class="Function">SET_DIRECTORY_PROPERTIES</font><font class="Normal">( </font></br></div>
<div id="38" class="line"><font class="Normal"> PROPERTIES</font></br></div>
<div id="39" class="line"><font class="Normal"> ADDITIONAL_MAKE_CLEAN_FILES </font><font class="String">"</font><font class="Variable">${ECOS_ADD_MAKE_CLEAN_FILES}</font><font class="String">"</font></br></div>
<div id="40" class="line"><font class="Normal"> )</font></br></div>
<div id="41" class="line"><font class="Keyword">ENDMACRO</font><font class="Normal">(ECOS_ADD_EXECUTABLE)</font></br></div>
<div id="42" class="line"><font class="RegionMarker"># END of macro</font></br></div>
<div id="43" class="line"></br></div>
<div id="44" class="line"><font class="Comment">#calling a self-defined function, variables are also blue here</font></br></div>
<div id="45" class="line"><font class="Function">ECOS_ADD_EXECUTABLE</font><font class="Normal">(</font><font class="Variable">${PROJECT_NAME}</font><font class="Normal"> </font><font class="Variable">${the_sources}</font><font class="Normal"> </font><font class="Variable">${qt4_moc_SRCS}</font><font class="Normal">)</font></br></div>
<div id="46" class="line"></br></div>
<div id="47" class="line"></br></div>
<div id="48" class="line"></br></div>
</div>
</body>
</html>