<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # Syntax Highlighting > 原文:[https://docs.gitlab.com/ee/user/project/highlighting.html](https://docs.gitlab.com/ee/user/project/highlighting.html) # Syntax Highlighting[](#syntax-highlighting "Permalink") GitLab 通過[Rouge](https://rubygems.org/gems/rouge) Ruby gem 在所有文件上提供語法高亮顯示. 它將嘗試根據文件擴展名猜測要使用哪種語言,大多數時間是足夠的. **注意:** [Web IDE](web_ide/index.html)和[代碼片段](../snippets.html)使用[Monaco Editor](https://microsoft.github.io/monaco-editor/)進行文本編輯,而在內部使用[Monarch](https://microsoft.github.io/monaco-editor/monarch.html)庫進行語法突出顯示. 如果 GitLab 在猜測錯了,你可以覆蓋其選擇使用語言的`gitlab-language`的屬性`.gitattributes` . 例如,如果您在 Prolog 項目中工作并使用`.pl`文件擴展名(通常以 Perl 突出顯示),則可以將以下內容添加到`.gitattributes`文件中: ``` *.pl gitlab-language=prolog ``` 當您簽入并進行更改時,項目中的所有`*.pl`文件都將突出顯示為 Prolog. 這里的路徑只是 Git 內置的[`.gitattributes`接口](https://git-scm.com/docs/gitattributes) . 因此,如果您要在使用 Ruby 語法的項目根目錄下發明一種名為`Nicefile`的文件格式,那么您需要做的就是: ``` /Nicefile gitlab-language=ruby ``` 要完全禁用突出顯示,請使用`gitlab-language=text` . 可通過 CGI 選項獲得更多有趣的惡作劇,例如: ``` # json with erb in it /my-cool-file gitlab-language=erb?parent=json # an entire file of highlighting errors! /other-file gitlab-language=text?token=Error ``` 請注意,這些配置僅在`.gitattributes`文件位于默認分支(通常為`master` )中時才生效. **注意:** Web IDE 不支持`.gitattribute`文件,但已[計劃在將來的發行版中使用](https://gitlab.com/gitlab-org/gitlab/-/issues/22014) .
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看