Sublime Forum

Comfort using sublime text 2 if this features available on 3 it's great!

#1

Hi there ,
Normally i am using sublime text 3 latest but i am practicing wp theme development from video tutorial. Here i see my tutors can mark the page via drag or when write a line of codes then it’s auto markup with gray background .
Here is a screenshot from video tutorial :

I have install sublime text 2 and find the gray color scheme but couldn’t to do the dragging systems .
Here is my screenshot …

Just dragging option or fill a background with full width to last line of codes wanted like this . If i can make this on my sublime 3 that’s really good .

0 Likes

#2

is it possible that they have some color scheme that has gray selection background?
edit:
in your color scheme xml file find the following:
<key>selection</key> <string>#ffffff16</string> <key>selectionBorder</key> <string>#ffffff16</string> <key>stackGuide</key> <string>#ffffff40</string>

if you modify the selection string, you will be changing the background color of the selection. so to make it completely red for example you would change it to:
<key>selection</key> <string>#ff000016</string> <key>selectionBorder</key> <string>#ffffff16</string> <key>stackGuide</key> <string>#ffffff40</string>
last two numbers are for transparency.

0 Likes

#3

Thanks for response @arx
How i can edit xml file and put this string ?

0 Likes

#4

Yes, but you will need a package: Color Scheme Editor.
once you install that package they basically give you information about how to open color scheme files.

if you are too lazy to read, on windows it’s Shift+f12, and new window should pop up.

If I’m not mistaken you will need to extract the theme file first, and I believe they explain that in the readme.
to extract and open packages, you will need PackageResourceViewer package. it’s very easy to use.
with that actually you can edit anything, as long as you extract it, and then open it.

Let me know if you have trouble with editing color scheme.

0 Likes

#5

ha ha i am really lazy to read .
Here i am trying to save the string you give . But can’t find the specified

0 Likes

#6

Right, that is happening because we need to extract the theme first.

    • so install PackageResourceViewer.
    • open command pallete (ctrl+shift+p)
    • type PackageResourceViewer: Extract Package.
    • then find the name of the theme, i see you have mariana theme.
    • once you find it click on it.
    • open command pallete again, and type PackageResourceViewer: Open Package
    • find the name of the theme
    • and open the .tmTheme file.
  • you can edit that, OR
    from this point you can click shift+f12 and open the color scheme.
    I’m pretty sure you can click shift+f12 right after step 5 and be able to edit it.

Try it and let me know

1 Like

#7

Sorry. I can’t find the .tm theme file.
Could you please wast your two minutes time with me ?
Connect me on Skype : wpsafar

0 Likes

#8

Sorry I’m at work, no skype here. Sorry :frowning:

https://packagecontrol.io/packages/ColorSchemeEditor

Check this link out, follow the instructions and you will be good.

1 Like