I've started using Sublime Text and it's great. But while editing Wix setup files I need to insert randomly generated GUID's in form like 52E47764-B722-4E8A-9BA8-DDA5B1500391.
The question: is there any snippet or hotkey or something else to insert GUID to text beeing edited
There is a plugin for it: https://github.com/SublimeText/GenerateUUID
Related
My problem is I'm currently working on a wordpress site using woocomerce. I made a variable product and its generated a dropdown. The problem is before the dropdown its "generating" a text saying " … do dropdown …. " which is nowhere in the code. Not even the theme files or even in the database. i Provide some screenshot for the HTML code.
I think its in the css ::after content"" but i cant find it anywhere.
I dont want to even show anything so a simple display:none would be nice but i cant select in css.
Thank you for the help.
The text could be in either:
The code base - You can do a search in files on linux server by:
grep -noir "do dropdown"
Or the database - You can do an export of the database and then search the export with a text editor locally to find the table it is stored in. This will give you a lead on how you can change it.
When I am adjusting content, I click on the source I want the html to be in an uglified state, so it is easier to naivagte, without having to copy and paste the html into HTMLLint, then into Sublime Text (at least once for editing, but definitely in ST2 if I plan on doing several iterations of edits), and then back into the RTF body area.
How do you get it to show the source in an indented view like this:
Maybe also how do you just edit the content in HTML format only? Any Module?
How do you get it to show the source in an indented view
Well, you can't unless it is built into the Rich Text Editor module that you have installed. CK Editor, for example, does indent the HTML nicely.
how do you just edit the content in HTML format only? Any Module?
If you want to edit the content without the Rich Text Editor, you may
disable that particular module admin/config/modules
or make plain text your default by going to admin/config/content/formats and dragging 'Plain Text' to the top of the list.
I added an AJAX html editor to my ASP.NET web app and it is working fine. However, when I save the contents of the editor to my sql database it just saves the html. I need to save this as an html document. Is there a way to programatically save the contents as a document in the database, which can then be opened using my asp.net app? Also, is there a way to use the html editor to anchor sections of the text added in the editor?
Thank you for all your help,
Most html editors only insert snippets of html, so what you can do is take the contents of the editor and add into an html document, before inserting into the database.
string.Concat('<html><body>', editor_contents, '</body></html>');
You will have to modify this to suit your specific needs, but this should get you started. To anchor text you just need to add an id to the section you would like anchored.
Go to section
<div id="someID">Section</div>
A simple usability question. So I got a Dreamweaver 8 (I'm kinda used to it by now) and I've just downloaded Notepad++. (Before that I used simple Notepad) What I like about these editors is that the PHP code appears in different colors. So if the colors are not right then you immediately know that you're doing something wrong.
But this works for only the files that end with .php
But Drupal's files end with .module and .inc etc... and it's often a nightmare to look for some comma or a single-quote that's messing up your code. So how can I make Dreamweaver or Notepad++ to show me the code in .module and .inc files in colors?
in notepad++:
Settings > Style Configurator...
Find PHP in the Language listing select it then add your desired extensions in the "User Ext :" field
leave the dot off and separate them with a space. you'll need to reopen the document after you save the change.
I created a Drupal 'user language' for Notepad++ so you can get autocomplete and sytax highlighting:
Here is how to install in the last post here:
https://drupal.org/node/326803
Enable clickable links : Settings**->Preferences->Misc->**Enable clickable link
Enable PHP Syntax Highlighting for .module files, .inc files and .install files by clicking Settings**->Style Configurator-> Click on the php extension in the left sidebar and copy and paste "module inc install" into the user ext box without the quotes of course and Save and close. Voila!
I'm trying to paste text into heroku vi editor, like the code snippet from facebook tutorial, but I cant seem to figure it out.
I have tried
:"*P
:"*p
:p
etc, i'm using windows 7 for all it matters? any ideas
open the vi editor, you want to start with an empty, unnamed document
type ':set noai nosm' (without the single-quotes) (you need the ':' char)
press the enter key
press the letter i (for insert)
now use the appropriate mouse click to paste your text
type ':wq myFileName.php' (no single-quotes)
# this 'w'rites the filename and 'q'uits the editor
Now you should have a file with the code you wanted.
Incidentally, this doesn't really qualify as a programming question, in the future, use the related site, superuser.com to post this sort of question.
I hope this helps.
at first You have to copy the text to the buffer pressing yy on the line you want to copy, after that You will be able to paste it anywhere with p .
Hope it helps :)
Just select and copy normally from the webpage ..And right click at the cursor position you want to paste at in your Unix terminal..(i.e vi editor) .
It'll get pasted.