-
Notifications
You must be signed in to change notification settings - Fork 793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Popup styling #882
Comments
Yes. But i don't know where a how this popup appear. Mmmm |
This was in Sublime's default <dict>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<dict>
<key>popupCss</key>
<string><![CDATA[
html {
background-color: #404238;
color: #F8F8F2;
}
a {
color: #66D9EF;
}
.error, .deleted {
color: #F92672;
}
.success, .inserted {
color: #A6E22E;
}
.warning, .modified {
color: #FD971F;
}
]]></string>
... Try a mouse hover over a function call in a Python script. |
mmm nothing appens to me with: #!/usr/bin/python
# Function definition is here
def printme( str ):
"This prints a passed string into this function"
print str
return;
# Now you can call printme function
printme("I'm first call to user defined function!")
printme("Again second call to the same function") |
I've got this issue as well. You may not see the popovers if you have |
Sublime has You can also use predefined variables as explained in the variables section on https://www.sublimetext.com/docs/3/minihtml.html. Compare below example (using Github's Primer palette of colors): <key>phantomCss</key><string>
html {
background-color: #e1e1e1;
color: #393939;
--bg: #e1e1e1;
--redish: #bd2c00;
--orangish: #ed6a43;
--yellowish: #ef9700;
--greenish: #55a532;
--cyanish: #0086b3;
--bluish: #183691;
--purplish: #a71d5d;
--brownish: #693a17;
}
a {
color: var(--cyanish);
text-decoration: underline;
}
b, strong {
font-weight: bold;
}
i, em {
font-style: italic;
}
h1 {
font-size: 2rem;
border-bottom: 1px solid color(var(--bg) blend(#393939 3%));
}
h2 {
font-size: 1.5rem;
border-bottom: 1px solid color(var(--bg) blend(#393939 3%));
}
h3 {
font-size: 1.25rem;
}
.error, .deleted {
background-color: color(var(--bg) blend(var(--redish) 50%));
}
.success, .inserted {
background-color: color(var(--bg) blend(var(--greenish) 50%));
}
.warning, .modified {
background-color: color(var(--bg) blend(var(--orangish) 50%));
}
</string>
<key>popupCss</key><string>
html {
background-color: #e1e1e1;
color: #393939;
--bg: #e1e1e1;
--redish: #bd2c00;
--orangish: #ed6a43;
--yellowish: #ef9700;
--greenish: #55a532;
--cyanish: #0086b3;
--bluish: #183691;
--purplish: #a71d5d;
--brownish: #693a17;
}
a {
color: var(--cyanish);
text-decoration: underline;
}
b, strong {
font-weight: bold;
}
i, em {
font-style: italic;
}
h1 {
font-size: 2rem;
border-bottom: 1px solid color(var(--bg) blend(#393939 3%));
}
h2 {
font-size: 1.5rem;
border-bottom: 1px solid color(var(--bg) blend(#393939 3%));
}
h3 {
font-size: 1.25rem;
}
.error, .deleted {
background-color: color(var(--bg) blend(var(--redish) 50%));
}
.success, .inserted {
background-color: color(var(--bg) blend(var(--greenish) 50%));
}
.warning, .modified {
background-color: color(var(--bg) blend(var(--orangish) 50%));
}
</string> |
https://www.sublimetext.com/3dev
The text was updated successfully, but these errors were encountered: