Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
ce3ad6a8
Commit
ce3ad6a8
authored
6 years ago
by
Dmitry Avdeev
Browse files
Options
Download
Email Patches
Plain Diff
web references highlighting: fixes
parent
75a21259
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
platform/lang-impl/src/com/intellij/codeInsight/highlighting/HyperlinkAnnotator.java
+3
-1
...intellij/codeInsight/highlighting/HyperlinkAnnotator.java
platform/lang-impl/src/com/intellij/openapi/options/colors/pages/GeneralColorsPage.java
+1
-1
...ellij/openapi/options/colors/pages/GeneralColorsPage.java
with
4 additions
and
2 deletions
+4
-2
platform/lang-impl/src/com/intellij/codeInsight/highlighting/HyperlinkAnnotator.java
+
3
-
1
View file @
ce3ad6a8
...
...
@@ -18,12 +18,14 @@ import org.jetbrains.annotations.NotNull;
public
class
HyperlinkAnnotator
implements
Annotator
{
private
static
final
String
ourMessage
=
getMessage
();
@Override
public
void
annotate
(
@NotNull
PsiElement
element
,
@NotNull
AnnotationHolder
holder
)
{
for
(
PsiReference
reference
:
element
.
getReferences
())
{
if
(
reference
instanceof
WebReference
)
{
Annotation
annotation
=
holder
.
createInfoAnnotation
(
reference
.
getRangeInElement
().
shiftRight
(
element
.
getTextRange
().
getStartOffset
()),
get
Message
()
);
holder
.
createInfoAnnotation
(
reference
.
getRangeInElement
().
shiftRight
(
element
.
getTextRange
().
getStartOffset
()),
our
Message
);
annotation
.
setTextAttributes
(
CodeInsightColors
.
INACTIVE_HYPERLINK_ATTRIBUTES
);
}
}
...
...
This diff is collapsed.
Click to expand it.
platform/lang-impl/src/com/intellij/openapi/options/colors/pages/GeneralColorsPage.java
+
1
-
1
View file @
ce3ad6a8
...
...
@@ -44,7 +44,7 @@ public class GeneralColorsPage implements ColorSettingsPage, InspectionColorSett
"JetBrains Home Page: <hyperlink_f>http://www.jetbrains.com</hyperlink_f>\n"
+
"JetBrains Developer Community: <hyperlink>https://www.jetbrains.com/devnet</hyperlink>\n"
+
"<ref_hyperlink>ReferenceHyperlink</ref_hyperlink>\n"
+
"
<i
nactive
_
hyperlink
>I
nactive
hyperlink</inactive_hyperlink>\n"
+
"
I
nactive
hyperlink
in code: \"<i
nactive
_
hyperlink
>http://jetbrains.com
</inactive_hyperlink>\
"\
n"
+
"\n"
+
"Search:\n"
+
" <search_result_wr>result</search_result_wr> = \"<search_text>text</search_text>, <search_text>text</search_text>, <search_text>text</search_text>\";\n"
+
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help