Blogrecent GeSHi contributions (apache, xorg, apt, performance, ...) Syndicate content

Wed, 06/18/2008 - 22:46

Your favourite syntax highlighter for web applications, GeSHi, recently got some new features and bug fixes. By yours sincerely. A rough summary of what I contributed:

  • various performance improvements, i.e. some speed optimizations and reduced memory consumptions (especially peak memory usage is down by roughly 1MB when highlighting geshi.php by itself)
  • minor bugfixes, including one which prevents some nasty PHP notices on PHP 5 systems to contaminate your precious log files
  • improved language files: bash, apache
  • added language files: GNU Gettext, Xorg configuration and Apt sources.list

Some of those features were already shipped with the recent 1.0.7.22 release. But the two new language files and the improvements to the existing apache language file are currently only available via SVN. Wait for the next stable release which should be 1.0.8.

To see two pretty examples, read on after the break:

exemplary sources.list (some entries of my gutsy machine)
  1. deb file:/var/cache/apt-build/repository apt-build main
  2. deb cdrom:[Kubuntu 7.10 _Gutsy Gibbon_ - Alpha i386 (20070808)]/ gutsy main restricted
  3.  
  4. # newer versions of the distribution.
  5.  
  6. deb http://de.archive.ubuntu.com/ubuntu/ gutsy main restricted
  7. deb-src http://de.archive.ubuntu.com/ubuntu/ gutsy main restricted
  8.  
  9. ## Major bug fix updates produced after the final release of the
  10. ## distribution.
  11. deb http://de.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
  12. deb-src http://de.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
My xorg.conf with Nvidia TwinView goodness
  1. # nvidia-xconfig: X configuration file generated by nvidia-xconfig
  2. # nvidia-xconfig: version 1.0 (buildmeister@builder3) Wed Jun 13 18:39:30 PDT 2007
  3.  
  4. Section "ServerLayout"
  5. Identifier "Layout0"
  6. Screen 0 "Screen0" 0 0
  7. InputDevice "Keyboard0" "CoreKeyboard"
  8. InputDevice "Mouse0" "CorePointer"
  9. EndSection
  10.  
  11. Section "Files"
  12. RgbPath "/usr/X11R6/lib/X11/rgb"
  13. EndSection
  14.  
  15. Section "Module"
  16. Load "dbe"
  17. Load "extmod"
  18. Load "freetype"
  19. Load "glx"
  20. EndSection
  21.  
  22. Section "InputDevice"
  23. Identifier "Mouse0"
  24. Driver "evdev"
  25. Option "Name" "Logitech USB RECEIVER"
  26. EndSection
  27.  
  28. Section "InputDevice"
  29. # generated from default
  30. Identifier "Keyboard0"
  31. Driver "kbd"
  32. Option "XkbRules" "xorg"
  33. Option "XkbModel" "pc105"
  34. Option "XkbLayout" "de"
  35. Option "XkbVariant" "nodeadkeys"
  36. EndSection
  37.  
  38. Section "Monitor"
  39. Identifier "Monitor0"
  40. Option "DPMS"
  41. EndSection
  42.  
  43. Section "Device"
  44. Identifier "Device0"
  45. Driver "nvidia"
  46. VendorName "NVIDIA Corporation"
  47. EndSection
  48.  
  49. Section "Screen"
  50. Identifier "Screen0"
  51. Device "Device0"
  52. Monitor "Monitor0"
  53. DefaultDepth 24
  54. Option "RenderAccel" "True"
  55. Option "TwinView" "True"
  56. Option "UseEdidFreqs" "True"
  57. Option "UseEdidDpi" "True"
  58. Option "MetaModes" "nvidia-auto-select, nvidia-auto-select; 1280x1024,NULL"
  59. Option "TwinViewOrientation" "LeftOf"
  60. SubSection "Display"
  61. Depth 24
  62. Modes "1280x1024" "1024x768"
  63. EndSubSection
  64. EndSection

Comments

Post new comment

  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options