We’re rewarding the question askers & reputations are being recalculated! Read more.

Hot answers tagged

20

You can press ⌘+A to select all then Text->Indent Selection.


15

The option is available in Safari, but it’s not on by default. To activate this, follow the steps below: Launch Safari Go to Safari > Preferences (or just use the command, shortcut) Click on the Advance tab in the Toolbar (it should be the last one) At the very bottom tick the checkbox for Show Develop menu in menu bar Exit the Preferences window Now you’...


13

Yes, there are numerous tools to convert manual pages to HTML and PDF. UNIX Approach Converting a man page to HTML, PDF, and text provides detailed instructions for macOS: cat /usr/share/man/man1/osascript.1 | groff -mandoc -Thtml >man_osascript.html If the file ends in .gz, then substitute the following. gunzip --to-stdout /usr/share/man/man8/...


10

HTML is a simple markup language and doesn't, arguably, require an IDE like Xcode. I'd recommend anyone starting to learn HTML (and related web tools like CSS and JavaScript) to start with a simple text editor. Learn your skills manually before relying on an app to speed up the process. Most of the time you'll find you can do a lot faster with a really good ...


9

In the MAMP application, click on "Preferences..." then go on the "Apache" tab. There you will be able to locate the default folder. You can create a new one and set it as default there too.


8

TextWrangler is free, but packed with a lot of features.


7

I think I may have found an answer. Setting your content to have the following styles: height: 100% (allows content to fill the viewport and go beyond the bottom) overflow-y: scroll (allows you to scroll below the viewport; the default value is visible) -webkit-overflow-scrolling: touch (to smooth any scroll behavior) appears to force the iOS menu in ...


6

This is normal behavior in Mobile Safari, tapping at the bottom will display the various browser options and scroll the web page up accordingly. Web page functionality stays the same though, so the user can still tap on the button after it scrolled to access whatever functionality it has.


6

Here is a function I added to my .bash_profile file to create a PDF of each BSD command I'd check the manual page for: manp () { docDir="$HOME/Documents/BSD Commands" [[ ! -d $docDir ]] && mkdir -p "$docDir" if [[ ! -f $docDir/$1.pdf ]]; then man -t "$1" | pstopdf -i -o "$docDir/$1.pdf" open "$docDir/$1.pdf" else ...


6

man -t yourcommand | open -fa "Preview" where yourcommand is the one you want the man page of. $ man -t tmutil | open -fa "Preview"


5

Yes you can. Simply select the text , right-click, select Link, Add Link and add the URL.


5

As far as I know, there's no way to do that in Safari or Chrome, but in Firefox you can select ranges of cells by holding option and command. You could also copy the whole table and paste it to a spreadsheet application or use something like pbpaste | cut -d $'\t' -f3. But it might not work if there are cells that contain br elements or rows that start with ...


5

You can do this relatively simple from the command line. Save your HTML, but also include the necessary SMTP headers at the top in the source. For this example I'll save the source as example.html in my home directory. ~/example.html: From: sender@example.com To: recipient@example.com Subject: Test email Mime-Version: 1.0 Content-Type: text/html <html&...


4

The built-in Safari browser seems to do this when you do File -> Print -> PDF -> Save as PDF, it works for me as of Version 6 of Mac Safari.


4

You might also try Kodiak JavaScript: http://www.becomekodiak.com/kodiak-javascript.html. It has syntax highlighting, tabs and keyboard extensions. Note that I am a co-author of this app, but I hope it is okay to advertise it here, because it seems to be related to the question asked.


4

There is also Diet Coda from Panic, designed as a companion for Coda but it can certainly be used independently. Unfortunately, it lacks support for Dropbox syncing. iCloud syncing exists if you use the App Store version of Coda.


4

I'm afraid that's not possible. Since all major browsers (Chrome, Firefox, Opera and Safari) all use the native Fullscreen API, you're stuck with the slow animation... I researched wether there were any work arounds or tricks but there doesn't seem to be. You're not alone in being annoyed. Only thing you can do is to use Flash when available, or, upgrade ...


4

If you try to accessing the files using the regular sharing feature the HTML file will fail to find it's linked CSS, JavaScript, etc files because of the way that Dropbox generates these sharing links. However you should have a "Public" folder in your Dropbox. If you drop your files in there and select one you should see a "Copy public link..." option above ...


3

If you truly want to go flash free, then use Safari, possibly in conjunction with an extension like Youtube5, which should handle some embeds that don't do html5 properly. However you're never going to get 100% of videos working. For one thing, while a majority of "flash video" is indeed a flash app playing h264 video, some of it is in other formats that ...


3

Have you tried ClickToFlash and HUDTube? HUDTube works with 99% of the videos on YouTube, even the ones C2F misses.


3

I use ClickToPlugin, which converts some Flash videos to HTML5 (this has the added benefit of letting you download them by right-clicking and choosing Download Video). It works for YouTube, at least, and for the videos on the second and third webpages you linked (though not the first).


3

Now I'm using Aptana- there is a stand alone version, and also just a eclipse-plugin. For HTML you don't need a special software, you can write it on every text editor. but it's really better and faster using a IDE


3

If it's a single page you can just open it in Safari with Cmd-O. If it's more elaborate, store it to ~/Sites, enable Web Sharing in the Sharing Preferences and point Safari to http://localhost/~YOUR-USER-NAME/WHATEVER-YOU-CALLED-IT.html


3

+1 for Textastic, which is my fave as well. But Gusto deserves a mention as the other top code editor for iPad. You can't go too far wrong either way. I ultimately preferred Textastic because it is less web-oriented and more of a general programmer's editor. It supports more languages out of the box, allows custom roll-your-own syntax highlighting ...


3

Once the page is opened on your iPhone all you have to do is tap the Sharing icon, middle icon on bottom, and select 'Add to Home Screen' If you want to load an html file that you've created on you Mac to your iPhone you'll need to do the following. From System Prefs > Sharing > Enable Web Sharing. Place the html file in your ~/Sites folder. Go the the URL ...


3

Add the following as a bookmark. I call mine View Source. It will open up a new window with the HTML source. javascript:(function()%7Bvar%20a=window.open(%22about:blank%22).document;a.write(%22%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3Ctitle%3ESource%20of%20%22+location.href+'%3C/title%3E%3Cmeta%20name=%22viewport%22%20content=%22width=device-width%22%20/%...


3

It's not generally possible unless specifically supported in some way by your browser, but you can create bookmarklets in JavaScript that add image title text to the web page as regular text paragraphs. How well that works depends on the layout of the web page. One possible implementation is the following as URL of a bookmark: javascript:(function(){for(...


3

I attack this problem by distributing the web app as a configuration profile. Rather than having people tap the mobile Safari button to add the app to the home screen, you have them download the profile file OTA from the web server. They will need to approve the profile installation, but then you can control the icon and force the full screen attribute so ...


3

Since the files are always local to the app in iOS. You can't open a html with apps like Safari and Chrome to load associated assets (js/images/css). However, You could use apps like Documents to upload the folder and open in app browser (uiwebview). Should work if the URL to assets in the html are relative.


3

As aglasser commented, you can use textutil like so: create-codeblock | textutil -stdin -format html -convert rtf -stdout | pbcopy


Only top voted, non community-wiki answers of a minimum length are eligible