Page 1 of 1

color of code in codetags

Posted: 05 Oct 2010, 18:18
by mattallen37

Code: Select all

All the code that is in codetags is green.
That bothers me, because any green (besides dark green) is often used to show a comment in a program (non compiled part of code). Is there a way for me to change it for my own viewing, or is there a way that it can be changed altogether? I always think of dark purple, maroon, and most green as code comments (as well as italic).

Re: color of code in codetags

Posted: 05 Oct 2010, 19:10
by HaWe
do you know the short story of Bertold Brecht:
Mr. K (Keuner) and the Bayleaf (Laurel(?))
"Now you got the form - but where is the content...?"
:mrgreen:

Re: color of code in codetags

Posted: 05 Oct 2010, 19:12
by mightor
mattallen37 wrote:Is there a way for me to change it for my own viewing, or is there a way that it can be changed altogether? I always think of dark purple, maroon, and most green as code comments (as well as italic).
Not without the use of some pretty powerful hallucinogenics.

- Xander

Re: color of code in codetags

Posted: 05 Oct 2010, 19:14
by HaWe
Image

Re: color of code in codetags

Posted: 05 Oct 2010, 19:15
by mattallen37
Very funny, but not exactly what I was looking for.

Re: color of code in codetags

Posted: 05 Oct 2010, 19:22
by HaWe
do not judge until you've tried it Image
:mrgreen:

Re: color of code in codetags

Posted: 05 Oct 2010, 19:27
by mightor
mattallen37 wrote:Very funny, but not exactly what I was looking for.
The answer is no, you can't.
doc-helmut wrote:do not judge until you've tried it
Hehe, spoken like a pharmacist!

- Xander

Re: color of code in codetags

Posted: 05 Oct 2010, 19:30
by HaWe
...who formerly visited a Hollandse Coffee Shop once or twice... :oops:

Re: color of code in codetags

Posted: 05 Oct 2010, 19:33
by mattallen37
:lol:
Ok, well thanks.

Re: color of code in codetags

Posted: 05 Oct 2010, 23:59
by muntoo
doc-helmut wrote:do not judge until you've tried it Image
:mrgreen:
Pretty good stuff.

--

Testing:

Code: Select all

<head>
<body>
<heart>
<title>Hello, Person.</title>
</heart>
</body>
</head>
<TAIL>
TAIL2

Code: Select all

<html>
  <head>
    <title>PHP Test</title>
  </head>
  <body>
  <?php
  echo "Hello World";
  /* echo("Hello World"); works as well, although echo isn't a
  function, but a language construct. In some cases, such
  as when multiple parameters are passed to echo, parameters
  cannot be enclosed in parentheses. */
  ?>
  </body>
</html>

Code: Select all

#include <stdio.h>

int main(int argc, char* argv[])
{
printf("Hello World!");

return 0;
}

Code: Select all

#include <iostream>

class CPerson
{
public:
int age; // yes, it can be negative!
int height; // also can be negative!
int temperature; // cannot be above 2^32-1
int iq; // mine is so high, that even a 32 bit signed int cannot store it
};

CPerson Me;

int main(int argc, char* argv[])
{
std::cout << "Hello World!";
return 0;
}
http://www.phpbb.com/community/viewtopi ... &t=1484835
http://qbnz.com/highlighter/
https://sourceforge.net/projects/geshi/