Make the language selection box pretty. See attached screenshot for an example of what it would look like.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | languages_full_names.patch | 13.37 KB | soxofaan |
| prettygeshi.png | 14.45 KB | robloach |
Make the language selection box pretty. See attached screenshot for an example of what it would look like.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | languages_full_names.patch | 13.37 KB | soxofaan |
| prettygeshi.png | 14.45 KB | robloach |
Comments
Comment #1
robloach...... 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.
Comment #2
soxofaan commentedhmm,
"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.
Comment #3
robloachYou 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.
Comment #4
soxofaan commentedwhat do you think of this patch?
Comment #5
robloachLooks good!
Comment #6
soxofaan commentedcommitted :
http://drupal.org/cvs?commit=82726
Comment #7
(not verified) commented