Dreamweaver not auto indenting - format

I recently started to use dreamweaver and i like it so far. I only got one problem with it.
I saw on youtube videos that when somebody types the code, after pressing enter dreamweaver automatically indents the code. The problem is, is that my dreamweaver doesnt do this for me.
I searched every forum, recreated my config folder and rechecked al the preferences (preferences -> format code) and enabled the auto indent in the code view options but nothing works.
Instead of getting this:
<html>
<head>
<title></title>
</head>
<body>
<h1></h1>
</body>
</html>
i get this:
<html>
<head>
<title></title>
</head>
<body>
<h1></h1>
</body>
</html>
anbody has the same problem?
I know you can set the indentation with specific tags, but html know allot of tags so i would be a pain if i had to do it one by one.
thanks!

Edit > Preferences > Code Format
Check the Indent checkbox.

Related

Getting 'referrence error: define is not defined' when I try to load Modernizr

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="scripts/modernizr-custom.js"></script>
</head>
I used the Development Build option on their front page that selects all of the options and I tried minified and not minified but got the same error. I am just downloading the file and placing it in a local folder. I tried it with just selecting the canvas element in thier selection options and it works fine.
This bit of code is what is added in the full feature one and is the line that is giving the error on line 29.
;
define("test/network/beacon", function(){});
Thanks.
Ok they helped me out over there. I was using Ublock and it messed something up.

The image won't display

I am trying to get an image to display on a basic webpage I am writing for a class. It just shows a box with my alternate text. Here is my code:
<html>
<head>
<title>Practice Features</title>
</head>
<body>
<img src=“images/FLCLogo.JPG” alt=“Folsom”>
</body>
</html>
Both the textedit doc and the images folder are in the same folder. In fact, they are the only files in that particular folder.
I'm doing the coding on a Mac, if that makes a difference at all. I've viewed it on both Chrome and Safari. Same issue.
You need to copy the file location..
Go to your image/properties/location+
Copy the location and paste it inside your quotes

CKEditor is disabled - I've tried everything

I have problem with CKEditor. I download lastest version and implement on my CMS. All buttons and textarea are disabled and I can't do anything. I searched and find solutions like CKEditor.inline or readOnly but it just doesn't work...
My code looks just like:
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test</title>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
</head>
<body>
<textarea name="editor" class="text" rows="4" cols="115">Some text</textarea>
<script type="text/javascript">
CKEDITOR.replace("editor");
</script>
</body>
</html>
And here is live version: http://www.hbmedia.pl/test.php
I finally figured this one out. Thought I'd post an answer in case anybody else comes across this question.
In order for the "Classic Editor" to function within a custom ckeditor4 package, you need to make sure the "wysiwygarea" feature is added to the package. This is named "iFrame editing area" in the feature list.
If you don't do this, only the inline editor is available, even though the classic editor shows up as disabled.
If you don't want to use iframe as a content container you might want to use Div editing area. The behaviour is described in IFrame Editing Area page in the notes section:
This is the core functionality of the classic, iframe-based editor which can only be disabled if it is backfilled by an alternative plugin (such as Div Editing Area) or if only inline editor is used.

Unable to download base64 encoded image on Chrome

I have an app that, when clicking on a link, opens a new window with the following code:
<html>
<head>
</head>
<body>
<img src="data:image/png;base64,...">
</body>
</html>
On Chrome, if I right-click and select Save image as... option, the pop up to select saving location does not appear.
At the beginning I thought it was a Chrome error, but to test it I have copied the same code on a separate html page and I am able to download it.
So, anyone has a clue for what can be happening here?

VBScript use Windows Visual Styles

Is it possible to tell a VBScript to use Windows Visual Styles, so that any form components use Windows themed ones rather than classic ones? For example, to make a MsgBox show a styled button rather than a classic 3D raised square one.
This:
As opposed to this:
In HTA applications, A simple meta tag will turn on Visual Styles:
<META HTTP-EQUIV="MSThemeCompatible" CONTENT="yes">
This trick has seemed to disappear completely from Google search results, leaving this S/O question at the top!
In the case where a VBScript MsgBox is the culprit, one would have to modify wscript host to use visual styles. But for the sake of the post, you can easily make your own replica of a MsgBox using an HTA file, and turning on visual styles. I created an exact replica based off your screenshot:
msgbox.hta:
<html>
<head>
<title>MsgBox Title</title>
<META HTTP-EQUIV="MSThemeCompatible" CONTENT="yes">
<HTA:APPLICATION ID="Custom MsgBox"
APPLICATIONNAME="Custom MsgBox"
BORDER="thin"
BORDERSTYLE="normal"
CAPTION="yes"
CONTEXTMENU="no"
ICON=""
MAXIMIZEBUTTON="no"
MINIMIZEBUTTON="no"
SHOWINTASKBAR="no"
SINGLEINSTANCE="no"
SYSMENU="yes"
SCROLL="no"
WINDOWSTATE="normal"/>
<script language="javascript">window.resizeTo(400,170);</script>
</head>
<body style="font-family:Arial;padding:20px 0 0 20px;background:rgb(180,240,230)">
<p>MsgBox Body; lorem ipsum dipsum</p><br>
<div align="right"><button onclick="window.close()" style="width:80px">OK</button></div>
</body>
</html>
It's small enough where you could echo it into an hta file right from a batch script, if you wanted to.
I hope this helps!
You cannot, but if you want to customize other properties of a message box this may help: http://www.javascriptkit.com/javatutors/vbalert.shtml

Resources