Make the language selection box pretty. See attached screenshot for an example of what it would look like.

CommentFileSizeAuthor
#4 languages_full_names.patch13.37 KBsoxofaan
prettygeshi.png14.45 KBrobloach

Comments

robloach’s picture

...... Usually in the selection box, you'd normally see:

php
mysql
ini
cpp
csharp

etc.... But if we allow the user to input their own strings for each language, we could make the selection nicer.

soxofaan’s picture

Assigned: Unassigned » soxofaan

hmm,
"cpp" is indeed not as pretty/obvious as "C++".

The full name of each language is already in its language definition file of the GeSHi library, so there is no need for user interaction.
But getting all the full names would mean including/executing over 80 extra php files, which would eat a lot of memory/CPU I guess.
I'll probably have to add some caching to the mix.

robloach’s picture

You could use something like the Tags that are provided in the administration interface. That's what I used to get them working in the screenshot I used. Not the best solution though.

soxofaan’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new13.37 KB

what do you think of this patch?

robloach’s picture

Looks good!

soxofaan’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)