Subline text color in webpage code snippet - sublimetext2

I wonder, is there a way to get subline text color scheme in my webpage code snippet? I try google-code-prettify but there isn't the right color scheme. I want Monokai scheme. I try to search something like that, but nothing.

You can write your snippet in ST2 and then export it to HTML using ExportHtml.
This plugin allows the exporting of a document in ST2 to an HTML file
or to BBCode. It duplicates ST2's theme colors and font styles.

Related

Froala Editor bold button does not work as expected

I am building a web app that allows users to write their own html pages using the Froala editor integrated on my website.
The editor works really well and provides a great degree of control as well but, there is a small problem I am facing with the bold button. If you highlight some text inside the editor and click on the bold button, in the editor the text does become bold but in the corresponding html which is generated has a simple <strong> tag around it. Now when you load that html on a browser when it is delivered via a link or any other service, it does not show up as bold unless we write some css for it.
What I would like to know is:
Is this the correct behaviour?
Is there any fix or option that we need to control on Froala to make
it look bold?
Apart from writing custom css for it, if there are any options please let me know.
You can check out the said behaviour on one of the demo pages they have: Froala Demo
Thanks in Advance!
PS: Let me know if you guys need code samples from my end, I have not done anything(custom) apart from the samples available on their website.

Removing text styles in Sketch

I had imported some text styles(JSON format) in my sketch file initially using "Shared text styles" plugin for sketch. Now I have a text style library that I have linked to my file. My problem is that I cannot seem to get rid of the initial text styles from my sketch symbols menu. I tried the text style organiser, but the original text styles(JSON ones) don't show up there. They only show up in my symbol override menu. I tried to edit the JSON of the entire sketch file and was able to remove the unwanted code, but when I save the file, sketch throws an error. Also, important thing, the file that i'm working on is linked to Abstract(version control tool)unwanted text styles from B3 to Header
Any solution for doing this?

sublime text 2 shows whole HTML code inside php file in single color?

sublime text 2 shows all my HTML code inside index.php in single color. same for other php files that contains HTML code. there is no color coding very strange! is'nt. although files containing only php code are normal.
i tried every theme and color scheme but same issue exists.
You have invalid comments (all the dashes that are highlighted in dark red), and Sublime is interpreting them as not closing, so your entire document is scoped as comment.block.html. Here is an image of some of your code using the Neon Color Scheme (full disclosure: I'm its author). The italic gray text indicates a comment:
Now here is the same code using valid comments (<!-- text here -->):
So, just fix your commenting style, and the syntax highlighting should work as expected.

Making PyCharm 'look' like Sublime text

I imported the same color scheme I use in sublime text, but the syntax coloring in sublime does a better job of coloring methods, classes, data types, etc. is it possible to make PyCharm look the same as sublime text 2?
PyCharm
Sublime Text 2
After doing some mix-ups, I found an exact working theme.
Hint: click on images to preview in high resolution.
Follow these steps
Install "Monocai Color Theme" from settings>plugins
Select Darcula theme in "Appearance and Behavior"
Select Monokai color scheme under "Editor>Color Scheme"
Final look
What you want is a good replacement theme such as these here.
/edit:
If you still want to further modify the colours for your syntax you need to go to Preferences -> Editor -> Colors & Fonts.
Once there you can select the language you want and customise the colour and look for different parts of the syntax. You can also save that colour scheme for future use. Further information here.
Here you can find an updated link [Editor's note (2021): the website is dead, so updated doesn't describe it anymore] to sublime text code color themes.
If you also want to add a code map bar like the one on sublime, take a look at the PyCharm plugin CodeGlance.

How does Chrome know how to format Microsoft Excel exported HTML without specifying the stylesheet?

Never mind. Excel does generate .xl99999 styles in a <header>. When this rich text editor value is set with HTML content, it adds the styles but when you try to get the value later, it only returns the <body> tag and strips the styles. I saw the contents after getting the value and submitting to the server. I guess you could say there is a bug in the rich text editor, but I will attempt to work around it.
How does Chrome know how to format these CSS classes exported from Microsoft Excel into HTML when I never specified the stylesheet to use? It is just a pure HTML string that was sent via an API so there is no stylesheet definitions. The class .xl6613001 is never defined, nor any others. So how does Chrome know to use a given background color?
Minus http://i.minus.com/iX77mOMM3dNNS.png
Here is the full output from Excel. Notice the lack of color styles.
The rich text editor is com.gc.gwt.wysiwyg.client.Editor, https://code.google.com/p/gwt-html-editor/wiki/GettingStarted.
I searched the Resources tab for '.xl' and nothing was found.
It does not format colors if I look at the raw HTML as a file.