Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
59a52c73
Commit
59a52c73
authored
May 10, 2021
by
Gary Holtz
Committed by
Suzanne Selhorn
May 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating highlight docs with configuration option
parent
25c73c95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
doc/user/project/highlighting.md
doc/user/project/highlighting.md
+18
-0
No files found.
doc/user/project/highlighting.md
View file @
59a52c73
...
@@ -49,3 +49,21 @@ file is in your default branch (usually `master`).
...
@@ -49,3 +49,21 @@ file is in your default branch (usually `master`).
NOTE:
NOTE:
The Web IDE does not support
`.gitattribute`
files, but it's
[
planned for a future release
](
https://gitlab.com/gitlab-org/gitlab/-/issues/22014
)
.
The Web IDE does not support
`.gitattribute`
files, but it's
[
planned for a future release
](
https://gitlab.com/gitlab-org/gitlab/-/issues/22014
)
.
## Configure maximum file size for highlighting
You can configure the maximum size of the file to be highlighted.
The file size is measured in kilobytes, and is set to a default of
`512 KB`
. Any file _over_ the file size is rendered in plain text.
1.
Open the
[
`gitlab.yml`
](
https://gitlab.com/gitlab-org/gitlab-foss/blob/master/config/gitlab.yml.example
)
configuration file.
1.
Add this section, replacing
`maximum_text_highlight_size_kilobytes`
with the value you want.
```
yaml
gitlab
:
extra
:
## Maximum file size for syntax highlighting
## https://docs.gitlab.com/ee/user/project/highlighting.html
maximum_text_highlight_size_kilobytes
:
512
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment