dbeaver / dbeaver/dbeaver

Highlight code sections

Open
#13,239 5 comments 0 reactions 1 assignee Claimed by @E1izabeth View on GitHub
xf:sql editor
Dominant language
Java
Stars
51.8k
Forks
4.4k
Avg merge
3d 8h
Merged PRs (30d)
188

Description

**Is your feature request related to a problem? Please describe.**
There may be multiple places i repeat a piece of code in one query - for example i could write:
`TO_NUMBER(TO_CHAR(SYSDATE-1, 'YYYYMMDD'))`
In multiple places, but if i want to change the date range, i would likely have to change it in all places in occours.

**Describe the solution you'd like**
It would be nice if you could have a piece of code remain consistently highlighted (with a background color of my choice). For example, in this case, i could 'pin' the `TO_NUMBER(TO_CHAR(SYSDATE` portion of the script, so it would appear highlighted everywhere in the SQL file, just so this is easy to find throughout the file.

Something like this:

![image](https://user-images.githubusercontent.com/30268352/126014123-e7534dda-98e7-4209-8b1a-8dcb15dff88f.png)

**Describe alternatives you've considered**
NA

**Additional context**
NA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.