| 496 | // ------------------------------------------------------------------------------------------------- |
| 497 | |
| 498 | void htmlify ( |
| 499 | istream& in, |
| 500 | ostream& out, |
| 501 | const std::string& title, |
| 502 | bool colored, |
| 503 | bool number_lines, |
| 504 | cprinter& cp |
| 505 | ) |
| 506 | { |
| 507 | if (colored) |
| 508 | { |
| 509 | if (number_lines) |
| 510 | { |
| 511 | cp.print_and_number(in,out,title); |
| 512 | } |
| 513 | else |
| 514 | { |
| 515 | cp.print(in,out,title); |
| 516 | } |
| 517 | } |
| 518 | else |
| 519 | { |
| 520 | static bprinter bp; |
| 521 | if (number_lines) |
| 522 | { |
| 523 | bp.print_and_number(in,out,title); |
| 524 | } |
| 525 | else |
| 526 | { |
| 527 | bp.print(in,out,title); |
| 528 | } |
| 529 | } |
| 530 | } |
| 531 | |
| 532 | // ------------------------------------------------------------------------------------------------- |
| 533 | |