mac browsers don't load load my test html files


Recommended Posts

So instead of going through the editing app I use on my site through the browser, I wanted to make some files on my machine and do local tests.

I create my HTML documents and save them as .html files. I load them up in FF, Safari, and Chrome, and all of them just load the text without actually processing the HTML.

I do this all day long at work without any issues on the POS windows XP box they give me, so I know I'm not doing anything wrong with the HTML.

When I upload the .html file to my server, it still doesn't work properly.

I've used both Text Edit and MS Word to create these HTML files. Any ideas on wtf I'm doing wrong? I feel like I'm idiotically missing something... This is just ridiculous!

I don't know if this is the cause, but don't use Word to work on HTML. Word adds in all kinds of crap, and uses magic quotes and such. Just use a text editor. I don't have a Mac, so I can't say which are good, but use something other than Word, and see if you still have the same issues.

I don't use word... it was just a test to see if I was doing something wrong with Text Edit.

Why won't text edit work? That's such crap.

  On 17/10/2011 at 01:14, articuno1au said:

I don't think the word part is in anyway related, but +1 for not using word to work with HTML.

Either Notepad, Notepad++ or Visual Studio Express Web Edition

I prefer Visual Studio >.<

I guess you missed this is the OSX forum? (or I can't find the "Mac version" of Notepad++ on their website).

  On 17/10/2011 at 01:13, cooky560 said:

If you don't fancy working with the actual code, but want an editor that spews out globally readable sites, I use KompoZer, it's free for Mac and Unix and its not massively different from Dreamweaver style apps.

You completely missed the point of my post. I WANT to work with HTML code...

Indeed I did, my apologies.

I read it as "working with XP and won't run on Mac".

My mistake >.<

EDIT::

http://www.barebones.com/products/textwrangler/

Text wrangler seems to be the closest OSX equivalent to Notepad++. Not sure if that helps at all >.<

Maybe an obvious question, but how exactly are you saving the files in Text Edit? If you don't have it set up correctly, then you aren't saving the html files as pure text. You have to remember that Text Edit is really closer to Wordpad on Windows than it is to Notepad.

Here's an article on Apple's support site that might help: http://support.apple.com/kb/ta20406

  On 17/10/2011 at 01:34, cooky560 said:

You'll see that Kompozer has tabs, one for design and one for direct code input if you try it :)

thanks; i'll give that a try

  On 17/10/2011 at 01:29, articuno1au said:

Indeed I did, my apologies.

I read it as "working with XP and won't run on Mac".

My mistake >.<

No worries.

Also, if you want to view html files through a web server on your Mac, go to preferences and turn on web sharing. It will give you a link to your Sites directory, and anything viewed through that link (it's the same as your IP address + ~username/sites) will be run through Apache.

And they're probably not working because, as noted above, textedit is saving them in the wrong format (or with the wrong encoding). Try TextWrangler, it's free and has syntax highlighting.

If the HTML is definitely saved in a plaintext document, It could be that the MIME types for that particular kind of document is configured incorrectly either on the web server (if you have installed one locally and using this to run the tests) or on the operating system (if you are running it off the local file system)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Microsoft: Edge performs better than Google Chrome on Windows in ad blocking and more by Sayan Sen Recently, Google put out a performance report for its Chrome web browser explaining how the changes it made to memory management and caching mechanisms managed to make it the fastest it has ever been. Google is not the only one to do it recently, as Microsoft too made similar claims about performance boosts earlier in the year in April. If you were trying to pick between the two, Microsoft is trying to make it easy for you to decide. In a recent blog post titled "Microsoft Edge browser: The fast, smart alternative to Chrome," the tech giant has laid out all the reasons you should pick its browser over Google Chrome. As pointed out in our first paragraph, performance is something these companies often try to brag about, and for good reasons, because people do want to get a snappier experience. This could explain why Mozilla's Firefox has been left behind over time in terms of market share, as it has not been able to keep up with Chromium-based browsers in the performance department. Microsoft says that Edge is better for your Windows PC than Google's Chrome, as it is a "Microsoft product" that "integrates closely with Microsoft Windows," which helps with "performance benefits." Besides that, the Redmond company also points out other "speed and efficiency" features of Edge, like sleeping tabs that helped save 'over 7 trillion megabytes of memory' in 2024. And Edge is also said to "help with smooth performance so that add-ons like Microsoft Translator, ad blockers, and password managers work efficiently." Microsoft adds how the "optimized architecture of Edge helps with lower CPU load and overall resource consumption, providing a smooth experience, particularly on low-spec devices" and also how its "efficient resource allocation helps minimize slowdowns." Aside from performance, productivity is another area where Microsoft says Edge excels. That is thanks to Microsoft 365 integration and other AI tools. In the end of the blog post, Microsoft suggests that this is the right time to switch to Edge from Google Chrome. You can find the post here on Microsoft's official website.
    • At some point, hardware becomes obsolete and we cant blame vendors for dropping support. Much of the models dropped, run Intel hardware which means they can install something else on the device if they truly want to keep using it.
    • Well, that was fun: PS C:\WINDOWS\system32> Install-Script -Name Set-InetpubFolderAcl WARNING: Unable to download from URI 'https://go.microsoft.com/fwlin...627338&clcid=0x409' to ''. WARNING: Unable to download the list of available providers. Check your internet connection. PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7468 char:21 + ... $null = PackageManagement\Install-PackageProvider -Name $script:N ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (Microsoft.Power...PackageProvider:InstallPackageProvider) [Install-PackageProvider], Exception + FullyQualifiedErrorId : NoMatchFoundForProvider,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackageProvider PackageManagement\Import-PackageProvider : No match was found for the specified search criteria and provider name 'NuGet'. Try 'Get-PackageProvider -ListAvailable' to see if the provider exists on the system. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7474 char:21 + ... $null = PackageManagement\Import-PackageProvider -Name $script:Nu ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (NuGet:String) [Import-PackageProvider], Exception + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.ImportPackageProvider WARNING: Unable to download from URI 'https://go.microsoft.com/fwlin...627338&clcid=0x409' to ''. WARNING: Unable to download the list of available providers. Check your internet connection. PackageManagement\Get-PackageProvider : Unable to find package provider 'NuGet'. It may not be imported yet. Try 'Get-PackageProvider -ListAvailable'. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7478 char:30 + ... tProvider = PackageManagement\Get-PackageProvider -Name $script:NuGet ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Microsoft.Power...PackageProvider:GetPackageProvider) [Get-PackageProvider], Exceptio n + FullyQualifiedErrorId : UnknownProviderFromActivatedList,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPackageProvider Install-Script : NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' or newer version of NuGet provider is installed. At line:1 char:1 + Install-Script -Name Set-InetpubFolderAcl + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: ( [Install-Script], InvalidOperationException + FullyQualifiedErrorId : CouldNotInstallNuGetProvider,Install-Script
    • Because Apple has never discontinued Mac models before now?
    • I recall reading that they intend to synchronize the version numbers between iOS, tvOS and macOS, so we will also be getting macOS 26 up next.
  • Recent Achievements

    • Week One Done
      abortretryfail earned a badge
      Week One Done
    • First Post
      Mr bot earned a badge
      First Post
    • First Post
      Bkl211 earned a badge
      First Post
    • One Year In
      Mido gaber earned a badge
      One Year In
    • One Year In
      Vladimir Migunov earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      488
    2. 2
      +FloatingFatMan
      257
    3. 3
      snowy owl
      247
    4. 4
      ATLien_0
      222
    5. 5
      +Edouard
      190
  • Tell a friend

    Love Neowin? Tell a friend!