First off, I don't know what this is called. So I am going to explain it.
While using Sublime Text Editor and editing HTML it would autocomplete certain parts of the text. Stuff it knew without a doubt that I would be typing.
For example:
<div> </
By the time I've typed that, it would auto-complete to
<div> </div>
Now, I'm wondering what this is called and how I can enable this when using Atom.
I know this is probably a silly question, but I have looked through the answers myself and I just don't know what this is called in actuality, so I can't seem to find anything related to it and it would probably be faster to get a quick answer here.
Thank you.
U can type the command without braces it will automatically complete the tags... I tried it and works well...
ex: write p instead of
Hope you understand.....
cheers :)
Try this from inside the Atom Editor. See my Atom Cheatsheet at https://github.com/pd-gmit/atom-cheatsheet/blob/master/atom_cheatsheet.md for more tips.
Ctrl Space L
Related
Question: is there an easy way to toggle show/hide text in learnr tutorials? I know that you can use code folding in rmarkdown to show/hide code but what I'd like to do is have a "show answer" which then shows a paragraph explaining something. Quite often I find with teaching statistics that I want a student to have a look at something and think about it, and then see if what they think agrees with what I think. A toggle show/hide text (or just show hidden text) would be really handy.
Not really great with css and totally at sea with javascript so if possible an explanation for a 3-year old would be appreciated :-)
Any advice gratefully received.
D'oh! Putting this here in case anyone else is looking for it
<details><summary>Click here for explanation</summary
Some text
</details>
That does exactly what I needed.
Is there a way to disable syntax highlighting in Atom.io?
I have searched a bit and ended up creating my own syntax package (https://atom.io/themes/no-syntax-highlighting-syntax), but maybe there is a better way.
NB: I just want to disable syntax highlighting (ideally keeping only comments and code in a different color), but I still want the other language-related features of Atom.io working. Like language completions, language snippets, language closure/bloc detections, auto-indent, etc.
(Some people argues against syntax highlighting, stating it might be actually harmful to developer productivity. I wanted to try that. Ie. http://www.linusakesson.net/programming/syntaxhighlighting/ and https://www.robertmelton.com/2016/03/21/syntax-highlighting-off/)
You can use Ctrl+Shift+L (or press button bottom right) to select proper language. In your case it would be Plain Text.
Second option is install package https://atom.io/packages/file-types and add in config.cson:
'file-types':
'YOURS EXTENSION': 'text.plain'
Haven't found a better solution yet.
If you are trying to do the same thing as I was - disabling syntax highlighting in Atom.io while keeping comments differentiated, language completions, language snippets, language closure/bloc detections and auto-indent - I would just recommend to install the theme I've created: https://atom.io/themes/no-syntax-highlighting-syntax
Set the file syntax to plain text. You can do this with control alt L or something like that.
Does anyone know of a way to prevent Sublime Text 3 converting sass variables on pressing tab?
For example, I might type $variable-name and then press tab, intending to insert the : and space, which would be the normal CSS behaviour. Within doc type sass, I get 1variable-name:; instead.
It's rather annoying to have to correct every time, and I'm sure others get irritated with the same. I have the Sass and Emmet packages installed.
Many thanks. Your help is much appreciated.
Too long for a comment...
So I did a little digging last night, and from what I can tell this behavior is hard-coded into Sublime. The command that's executed when Tab is pressed right after a variable is expand_abbreviation_by_tab. Many times, Sublime commands are implemented in .py files, and can so be edited to suit your needs. Unfortunately, I was unable to find any mention of this command anywhere, leading me to believe that it's hard-coded. I suppose a workaround would be to enter a space before hitting Tab, if your end goal is to have the colons : aligned with each other. Another option would be to use the Alignment plugin, available through Package Control. It's very configurable, and I highly recommend it.
I'm having a minor problem with an autocomplete search box. My application seems to work fine in IE, but when I try it in Firefox or Chrome, the search box doesn't function.
Unfortunately I'm pretty much of a newbie at mashups and javascript but I've managed to piece something together based on other examples from various sources. So forgive me if it's not the most elegant thing in the world! ;) It's a bit of a hodgepodge that I've been building in stages. I'm nervous about trying to streamline it much because I'm under a time constraint as it's a class project and don't want to mess up what already works. No doubt I have a lot to learn yet and I welcome suggestions. I just may not be able to apply them before I have to turn it in.
Any ideas what I'm doing wrong with the autocomplete? Also, I noticed that the Map/Satellite view buttons no longer worked after I built in the search functionality. My solution to that was to disable/hide the buttons! If anyone has any hints on that too, let me know.
Here's where the app is located: http://webpages.charter.net/nymbli/displays.htm
For some reason, I'm not able to get my code to post here but please feel free to view the source code for the page.
Thanks in advance,
Anne
You have an extra <script type="text/javascript"> tag. Remove that and look at the source in Firefox. The HTML errors are highlighted. In general, never use IE for development. Use a real browser instead. ;-)
Here's what I'm trying to do. I'm looking for a WYSIWYG editor or just a plain text-box that will highlight HTML syntax (in ASP.NET). Basically, we have a CMS that allows you to mess with templates for various pages, but right now all of the editable HTML is in a plain, ugly, text box. Does anyone know of an editor that will highlight the synax and allow you to edit it? I've checked out Antipro SyntaxEditor, which seems to be a good highlighting solution, but it's just a highlighter, and not an editor.
Thanks!
You may need to combine tools. For example, SO combines Markdown with Google Prettify which handles the actual syntax highlighting.
Another option is CKeditor and they offer open source licensing.
I use FreeTextBox on my dasBlog site. It seems to work pretty well and has the capabilities you're asking for.
Update
Hmm... the version on my own site has a button the toolbar to do syntax highlighting, but that button isn't shown on any the demos available at the link I have gave you. Just know that it does work, but that you may have to play with the configuration some to get that working.