gitlab-org--gitlab-foss/app/helpers
Dmitriy Zaporozhets f4b9a65c05 Merge branch 'reactivate-hljs-autodetection' into 'master'
Reactivate highlight.js language autodetection

### What does this MR do?

This commit partly reverts commit 0d13abb1 to reactivate highlight.js language autodetection.

It does NOT revert the part that adds the `nohighlight` CSS-class for a predefined set of filenames (which was indeed the intended purpose of commit 0d13abb1).

### Are there points in the code the reviewer needs to double check?

Not particularly, the only effect of this blob_helper is to add a CSS class to the `<pre>` container of the blob, to control the way highlight.js performs its syntax highlighting. (see where this helper is called at https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/views/shared/_file_hljs.html.haml#L12).

However this merge request DOES change the way the syntax highlighting is done (by bringing it back to the situation before commit 0d13abb1 where highlight.js autodetected the language itself). So we can expect some new kind of syntax highlighting problems. However in this case, the issues should be forwarded to the upstream project (https://github.com/isagalaev/highlight.js).

### Why was this MR needed?

The main motivation behind this partial revert is that there is no point (IMHO) in using an "intelligent" syntax highlighter which is specifically designed to autodetect languages if it is to dictate (via the CSS class) the language to use solely based on the filename extension.

### What are the relevant issue numbers / Feature requests?

Issue #665 "HLJS language autodetection / syntax highlighting fails "

### Screenshots (If appropriate)

See screenshots in issue #665

See merge request !232
2014-11-30 13:22:48 +00:00
..
appearances_helper.rb Improve login page behaviour 2014-07-13 20:56:29 +03:00
application_helper.rb Replace www.gitlab.com with about.gitlab.com 2014-10-07 13:16:19 +02:00
blob_helper.rb revert using the extension of the blob to determine the syntax highlighting language 2014-11-18 12:55:22 +01:00
branches_helper.rb Dont show new file link on protected branch for developers 2014-06-02 16:18:16 +03:00
broadcast_messages_helper.rb Customization and previewing of broadcast messages 2013-12-18 17:43:45 -05:00
commits_helper.rb Clean the string with commit author and email. 2014-11-14 11:08:58 +01:00
compare_helper.rb Fix bug with showing create merge request button while merge request are disabled in project settings 2013-12-04 11:02:36 +03:00
dashboard_helper.rb Factor dashboard helper methods. 2014-10-02 14:07:21 +02:00
diff_helper.rb Move organizing of comments to helper. 2014-09-12 19:51:44 +02:00
emails_helper.rb Set action on issue/mr creation mail. 2014-11-12 11:59:57 +01:00
events_helper.rb Improve dashboard note view and add tests 2014-10-12 23:56:56 -05:00
git_helper.rb Hide gpg signature on tags page from tag message 2014-11-18 18:00:38 +02:00
gitlab_markdown_helper.rb Improve dashboard note view and add tests 2014-10-12 23:56:56 -05:00
graph_helper.rb Remove the dependancy of grit from class Network::Graph 2013-08-20 12:05:23 +09:00
groups_helper.rb Filter group milestones. 2014-06-30 09:44:30 +02:00
icons_helper.rb Upgrade to Font Awesome v4.2 2014-10-03 12:19:24 +02:00
issues_helper.rb Add issue edited timestamp 2014-11-08 16:54:08 +06:00
labels_helper.rb Consistency: Capitalize hex values of sugested colors 2014-08-15 11:02:05 +02:00
merge_requests_helper.rb Merge pull request #7379 from cirosantilli/remove-title 2014-10-06 11:55:43 +03:00
namespaces_helper.rb Improve fork to namespaces feature 2014-11-14 16:06:39 +02:00
notes_helper.rb Upgrade to Font Awesome v4.2 2014-10-03 12:19:24 +02:00
notifications_helper.rb Upgrade to Font Awesome v4.2 2014-10-03 12:19:24 +02:00
oauth_helper.rb Add refactoring for multiple LDAP server support 2014-10-13 13:39:54 +02:00
profile_helper.rb Add parenthesis to function def with arguments. 2014-10-03 09:18:46 +02:00
projects_helper.rb make repo name link to repo homepage 2014-11-09 03:37:56 -08:00
search_helper.rb Sort projects in search autocomplete by amount of stars. Most popular go first 2014-09-25 19:41:49 +03:00
selects_helper.rb Add assignee and milestone to 2nd step 2014-05-08 15:52:59 +03:00
snippets_helper.rb Restyle snippets 2013-06-05 22:25:27 +03:00
submodule_helper.rb Refactor some search scopes to prevent wierd behaviour and PG::Error issues 2014-06-05 20:37:35 +03:00
tab_helper.rb Add parenthesis to function def with arguments. 2014-10-03 09:18:46 +02:00
tags_helper.rb Add parenthesis to function def with arguments. 2014-10-03 09:18:46 +02:00
tree_helper.rb Remove unneeded backslash: "\/" == "/" 2014-11-04 11:16:53 +01:00
visibility_level_helper.rb Snippets: public/internal/private 2014-10-09 17:09:53 +03:00