diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 15:08:13 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 15:08:13 +0000 |
commit | 0a353a9fa386ad60374daa9bad56f41bb5491c33 (patch) | |
tree | 7e51c83535577744e3daccdcd4017069a5d6bb7a /doc/user | |
parent | 0c1344a7c19635e387e6f7af20591ad73f46ddff (diff) | |
download | gitlab-ce-0a353a9fa386ad60374daa9bad56f41bb5491c33.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/user')
-rw-r--r-- | doc/user/profile/preferences.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/user/profile/preferences.md b/doc/user/profile/preferences.md index 7e581bb7419..0f46c3d6d25 100644 --- a/doc/user/profile/preferences.md +++ b/doc/user/profile/preferences.md @@ -63,6 +63,8 @@ Dark theme only works with the **Dark** syntax highlighting theme. ## Syntax highlighting theme +> Changing the default syntax highlighting theme for new users and users who are not signed in [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/25129) in GitLab 15.10. + GitLab uses the [rouge Ruby library](http://rouge.jneen.net/ "Rouge website") for syntax highlighting outside of any Editor context. The WebIDE (like Snippets) uses [Monaco Editor](https://microsoft.github.io/monaco-editor/) and it's provided @@ -89,6 +91,10 @@ The default syntax theme is White, and you can choose among 5 different themes: Introduced in GitLab 13.6, the themes [Solarized](https://gitlab.com/gitlab-org/gitlab/-/issues/221034) and [Monokai](https://gitlab.com/gitlab-org/gitlab/-/issues/221034) also apply to the [Web IDE](../project/web_ide/index.md) and [Snippets](../snippets.md). +You can use an API call to change the default syntax highlighting theme for new users and users +who are not signed in. For more information, see the `default_syntax_highlighting_theme` +in the [list of settings that can be accessed through API calls](../../api/settings.md#list-of-settings-that-can-be-accessed-via-api-calls). + ## Diff colors A diff compares the old/removed content with the new/added content (for example, when |