Code Highlighter
Copyright © by Marc Hoersken <info@marc-hoersken.de>Published under the Open Content License available from http://www.opencontent.org/opl.shtml
Table Of Contents
- 1. EXT: Code Highlighter
- 1.1. Read online
- 1.2. Introduction
- 1.3. - This extension adds a new content element to TYPO3 that can be used on any page. It allows you to highlight code with many different syntax highlighters. The extension can also contact the syntax repository and check for new or updated syntax highlighting files. The extension uses the popular GeSHi highlighter tool that has been tweaked to be included into it.
- 1.4. - Content Element in Page Module
- 1.5. Read online
- 1.6. - (German view) Content Element in Frontend with default styles and “Select All” and “Linenumbers on/off” link.
- 1.7. Read online
- 1.8. - Backend module.
- 1.9. Read online
- 1.10. Users manual
- 1.11. - To add a new code Content Element to any page, go to the “Page” module of your TYPO3 Backend.
- 1.12. - Click on the page you want to add the new element in and click on “New record”.
- 1.13. - Select the “Sourcecode” plugin from the “Insert plugin” item or click on “Sourcecode” from the “Plugins” section.
- 1.14. - You can now insert a title, the code itself and chosse a syntax for the code inside the formular.
- 1.15. - It also allows you to hide or show the “Select all” and “Linenumbering on/off” links.
- 1.16. - After you have filled in all information, click on one the save buttons.
- 1.17. - A syntax I want to use is missing, what should I do? You can either check for new syntaxes in the “GeSHi Syntax” module or go to the official GeSHi webpage and check for syntaxes yourself.
- 1.18. Adminstration
- 1.19. - The “GeSHi Syntax” module in the TYPO3 Backend provides some very useful features. You can install, uninstall and update the syntaxes.
- 1.20. - It's also possible to export and import syntaxes, like you can do it with extensions or pages.
- 1.21. Configuration
- 1.22. - Default CSS Styles in “ext_typoscript_setup.txt”.
- 1.23. - Default HTML Template in “pi1/class.tx_mhcodehighlighter_pi1.tmpl”.
- 1.24. - You can change the CSS Styles and the path to the HTML Template with TypoScript.
- 1.25. Known problems
- 1.26. - Nothing yet, please inform me if you find something:
- 1.27. Changelog
- 1.28. 10-06-08 Marc Hoersken <info@marc-hoersken.de>
- 1.29. Read online
- 1.30. * Updated GeSHi to version 1.0.8.8
- 1.31. * Fixed empty class attribute (thanks Jan)
- 1.32. Read online
- 1.33. 10-02-27 Marc Hoersken <info@marc-hoersken.de>
- 1.34. Read online
- 1.35. * Updated GeSHi to version 1.0.8.6
- 1.36. * Fixed language installation (thanks Jürgen and Maximilian)
- 1.37. * Updated path to language repository
- 1.38. Read online
- 1.39. 08-12-01 Marc Hoersken <info@marc-hoersken.de>
- 1.40. Read online
- 1.41. * Updated GeSHi to version 1.0.8.1
- 1.42. * Updated GeSHi syntax files and fixed PHP syntax
- 1.43. * Updated manual to new layout.
- 1.44. * Removed database based caching.
- 1.45. Read online
- 1.46. 08-06-08 Marc Hoersken <info@marc-hoersken.de>
- 1.47. Read online
- 1.48. * Fixed SYMBOL and REGEXP highlighting
- 1.49. * Updated GeSHi to version 1.0.7.21
- 1.50. * Updated GeSHi syntax files and fixed PHP syntax
- 1.51. Read online
- 1.52. 08-04-06 Marc Hoersken <info@marc-hoersken.de>
- 1.53. Read online
- 1.54. * Fixed invalid <span> and <code> tag (thanks Cyrill)
- 1.55. * Updated JS to work without those tags
- 1.56. * Added missing XCLASS statements
- 1.57. Read online
- 1.58. 07-11-27 Marc Hoersken <info@marc-hoersken.de>
- 1.59. Read online
- 1.60. * Renamed GeSHi class to 'tx_mhcodehighlighter_geshi'
- 1.61. Read online
- 1.62. 07-11-25 Marc Hoersken <info@marc-hoersken.de>
- 1.63. Read online
- 1.64. * Fixed config.linenumbering overwriting config.tabwidth
- 1.65. * Made the TCA (Web->List module) view looking better and set 'readOnly' to 1
- 1.66. * Fixed screwed layout if linenumbering was disabled
- 1.67. * Added new CSS to the static TypoScript setup file
- 1.68. Read online
- 1.69. 07-07-28 Marc Hoersken <info@marc-hoersken.de>
- 1.70. Read online
- 1.71. * Fixed manual
- 1.72. Read online
- 1.73. 07-07-27 Marc Hoersken <info@marc-hoersken.de>
- 1.74. Read online
- 1.75. * Tuned and documented the GeSHi class
- 1.76. * Added plugin to "Create Content Element" list
- 1.77. * Added manual
- 1.78. Read online
- 1.79. 07-07-27 Marc Hoersken <info@marc-hoersken.de>
- 1.80. Read online
- 1.81. * Initial release
This document is related to version 1.2.6 of the extension mh_code_highlighter.