GeSHi Syntax Highlighter [Deleted]

Languages supported in GeSHi by default:

*ABAP
*Actionscript
*ADA
*Apache Log
*AppleScript
*APT sources.list
*ASM (m68k)
*ASM (pic16)
*ASM (x86)
*ASM (z80)
*ASP
*AutoIT
*Backus-Naur form
*Bash
*Basic4GL
*BlitzBasic
*Brain****
*C
*C for Macs
*C#
*C++
*C++ (with QT)
*CAD DCL
*CadLisp
*CFDG
*CIL / MSIL
*COBOL
*ColdFusion
*CSS
*D
*Delphi
*Diff File Format
*DIV
*DOS
*DOT language
*Eiffel
*Fortran
*FourJ's Genero
*FreeBasic
*GetText
*glSlang
*GML
*gnuplot
*Groovy
*Haskell
*HQ9+
*HTML
*INI (Config Files)
*Inno
*INTERCAL
*IO
*Java
*Java 5
*Javascript
*KiXtart
*KLone C & C++
*LaTeX
*Lisp
*LOLcode
*LotusScript
*LScript
*Lua
*Make
*mIRC
*MXML
*MySQL
*NSIS
*Objective C
*OCaml
*OpenOffice BASIC
*Oracle 8 & 11 SQL
*Pascal
*Perl
*PHP
*Pixel Bender
*PL/SQL
*POV-Ray
*PowerShell
*Progress (OpenEdge ABL)
*Prolog
*ProvideX
*Python
*Q(uick)BASIC
*robots.txt
*Ruby
*Ruby on Rails
*SAS
*Scala
*Scheme
*Scilab
*SDLBasic
*Smalltalk
*Smarty
*SQL
*T-SQL
*TCL
*thinBasic
*TypoScript
*Uno IDL
*VB.NET
*Verilog
*VHDL
*VIM Script
*Visual BASIC
*Visual Fox Pro
*Visual Prolog
*Whitespace
*Winbatch
*Windows Registry Files
*X++
*XML
*Xorg.conf
 
I was able to add python to the code list with this:

Code:
<dl class="ctrlUnit">
    <dt>{xen:phrase language}:</dt>
    <dd><select name="redactor_code_type" id="redactor_code_type" class="textCtrl">
        <option value="code">{xen:phrase general_code}</option>
        <option value="php">PHP</option>
        <option value="html">HTML</option>
        <option value="python">Python</option>
    </select></dd>
</dl>

But it comes out as
Code:
. How can I get to come out as [code=python]?
 
Thanks for creating this plugin. Is it possible to modify it to register new tags instead of extending the code tag? If so, how?

Example of what I mean:
[cpp]
int main()
{
puts("Hello World!");
return 0;
}
[/cpp]
 
This addon is easily one of the most used addons on my forum, due to the type of people our forum attracts (it's for an open source .net project.) Anyways, since my members use this a lot, I've been seeing situations where it could be improved. Keep in mind, these are simply suggestions. As this is a free addon, and there is no money to be made from it by you. I don't expect them to be added, or even considered.

  1. Some sort of internal bbcode (that must be used within the [code][/code] tags) that could set the focus of the scroll box. Many times users on my forum need to post snippets of code to help other users, these snippets are some times hard to find for the user that is being helped. It would be useful if someone could post the entire source file that the snippet belongs to, but use a focus bbcode or something to bring the focus to the snippet.
  2. An internal highlight bbcode, so one could highlight lines of code within the code tags. Perhaps even allow one to highlight text within a line without highlighting the entire line.
I'd be willing to donate to help see these features see the light of day. Currently the addon is already super useful. Although with the suggestions above, I believe this addon could become even more useful and amazing.
 
how do I add these new programming languages to menu "code" without writing [code = java]
ee53c3e51dec91c86bf7feba8304e81d.png
 

Similar threads

  • Suggestion Suggestion
Lack of interest Syntax highlighter support
Replies
2
Views
433
Top Bottom