You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

highlight.go 411B

1234567891011121314151617
  1. // Copyright 2023 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package setting
  4. func GetHighlightMapping() map[string]string {
  5. highlightMapping := map[string]string{}
  6. if CfgProvider == nil {
  7. return highlightMapping
  8. }
  9. keys := CfgProvider.Section("highlight.mapping").Keys()
  10. for _, key := range keys {
  11. highlightMapping[key.Name()] = key.Value()
  12. }
  13. return highlightMapping
  14. }