mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
Make languages in Highlighted code button in toolbar customizable (#32528).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19429 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -453,7 +453,7 @@ jsToolBar.prototype.resizeDragStop = function(event) {
|
||||
|
||||
/* Code highlighting menu */
|
||||
jsToolBar.prototype.precodeMenu = function(fn){
|
||||
var hlLanguages = ["c", "cpp", "csharp", "css", "diff", "go", "groovy", "html", "java", "javascript", "objc", "perl", "php", "python", "r", "ruby", "sass", "scala", "shell", "sql", "swift", "xml", "yaml"];
|
||||
var hlLanguages = window.userHlLanguages;
|
||||
var menu = $("<ul style='position:absolute;'></ul>");
|
||||
for (var i = 0; i < hlLanguages.length; i++) {
|
||||
$("<li></li>").text(hlLanguages[i]).appendTo(menu).mousedown(function(){
|
||||
|
||||
Reference in New Issue
Block a user