Coloring code in an includes file
Does anyone know how to change the color of the coding in an includes file. Right now when you open one everything is black.
It all depends on which file type extension you saved your include as. If you save your include file as .xml, .php or .html for example, it will take on whichever code color choices you have defined in your Preferences for that file type.
Edit menu > Preferences > Code Color.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
Similar Messages
-
Include files from a different project ...
Hi,
I have projects A and B.
Project A contains "includes": a directory with several include files.
Project A gets deployed as a JAR file (ProjectA.jar). Example content:
/includes/menu.jspfThe target directory for Project A's deployment JAR file is set to: /
Project A has the following HTML Root Directory: ...AppA\ProjectA\public_html
Project B has the following HTML Root Directory: ...AppB\ProjectB\public_html
Project B needs the include files from Project A.
Project B has Project A as a dependency.
Project B has ProjectA.jar within its WEB-INF\lib directory.
The problems are:
1. Project B does not see the "includes" directory within its "Web Content" folder from Project A. How do you make Project B see Project A's includes directory?
2. Project B cannot compile the following code:
<jsp:directive.include file="/includes/menu.jspf" />
...The error message: Include file not found: /includes/menu.jspf
The error message is to be expected as Project B cannot currently see the files located within WEB-INF\lib\ProjectA.jar. How can this be fixed?
3. I have tried changing the HTML Root Directory to the "public_html" directories from both Project A and Project B. JDeveloper then displays an error indicating that it cannot find <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>.
There should be a way to do this, as the images and styles for ADF are successfully deployed and used within WEB-INF\temp\adf.
Any ideas are greatly appreciated.
Thanks!Hi,
I used a program called "Junction" to resolve this issue. It is a temporary solution.
http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
The program makes a true symbolic link. This allowed me to link the includes directory from ProjectA into ProjectB. Linking this way will not work when we go to deploy a suite of applications. We would prefer to package the includes in a single JAR file, then redeploy the JAR file everywhere.
Any other ideas? -
I've got a form in a tabe that i've got as an include file
throughout the
site. For some reason in firefox the form sits flush with the
table above it
& in ie there is a margin of about 10/15px.
Firefox is displaying as it should as i have checked all the
surrounding
code in the include file and in the html file it is being
included in and
there is no spacing at all - not even in the css applied to
it.
In design view the include form drops low as the hidden items
are visible
(form tags & the include tags) but these shouldn't affect
the positioning?
Absolutely no idea what could be causing this.
Please help - Thanks!Good luck!
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"JimR99" <[email protected]> wrote in message
news:[email protected]...
> Yep, It worked a treat. Thanks Murray!
>
> Bit of a doh! moment....
>
>
>
>
> "JimR99" <[email protected]> wrote in message
> news:[email protected]...
>> I'll try that & if it doesn't work i'll post the
code.
>>
>> Thanks Murray
>>
>>
>>
>> "Murray *ACE*"
<[email protected]> wrote in message
>> news:[email protected]...
>> > Show us, please.
>> >
>> > I'm guessing you need to control the margin-top
value of the form tag.
>> >
>> > --
>> > Murray --- ICQ 71997575
>> > Adobe Community Expert
>> > (If you *MUST* email me, don't LAUGH when you
do so!)
>> > ==================
>> >
http://www.dreamweavermx-templates.com
- Template Triage!
>> >
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>> >
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>> >
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>> > ==================
>> >
>> >
>> > "JimR99" <[email protected]> wrote in
message
>> > news:[email protected]...
>> > > I've got a form in a tabe that i've got as
an include file throughout
>> the
>> > > site. For some reason in firefox the form
sits flush with the table
>> above
>> > > it
>> > > & in ie there is a margin of about
10/15px.
>> > >
>> > > Firefox is displaying as it should as i
have checked all the
> surrounding
>> > > code in the include file and in the html
file it is being included in
>> and
>> > > there is no spacing at all - not even in
the css applied to it.
>> > >
>> > > In design view the include form drops low
as the hidden items are
>> visible
>> > > (form tags & the include tags) but
these shouldn't affect the
>> positioning?
>> > >
>> > > Absolutely no idea what could be causing
this.
>> > >
>> > > Please help - Thanks!
>> > >
>> > >
>> >
>> >
>>
>>
>
> -
I like Kuler very much.
I wonder how can I get color code directly like #343455 in
ColourLovers.com
Because most of case, I just want to have that color code
instead of ase file.
I know if I go to change mode, I can get a code, but I don't
know to change original colors.
And every time when I go back to previous menu, it load color
list again.
It's really painful.
Is there any way to get color code easily and quick from main
screen?
Thanks lots in advance.Hello, thank you for writing. At this time, if you are
looking at a theme you like, the only way to get color values on
the kuler website is through the Edit function.
Depending on how you find themes: If you have the
kuler
desktop, you can view the top 20 highest rated, newest, and
most popular themes, as well as browse and search, and copy/paste
Hex values by hitting the # key for the selected theme. You will
need to install the
AIR runtime
first.
Sami -
Code hints don't work - include files using a variable
In Dreamweaver CS 5.5 code hints didn't work properly.
DW would not look at my code and find the include files and look at the functions inside them when using a variable to make an absolute path, which is the best way to include files in PHP (its faster and more reliable on your web server)
Here is an example:
======================================
public_html/util/util_index.php
$DIR_MAIN =dirname(dirname(__FILE__).'../');
require_once "$DIR_MAIN/init.php";
my_function(#CODE COMPLETE DOES NOT WORK HERE
public_html/init.php
$DIR_INCLUDE= "$DIR_MAIN/inc";
require "$DIR_INCLUDE/common_functions.php";
#set up environment variables
#connect to the database
#etc
public_html/inc/common_functions.php
function my_function(param1, param2, param3) {
=======================================
Has this been fixed in Dreamweaver CS6 or should I wait until CS7?
Until this works, I prefer Notepad++I made a full SQL Developer installation with Java included, so I suppose that the included version is used.
After a problem with the German Version I tried to switch to English Version by using the hint:
link: 1.5.4 export insert statements
I changed the content of sqldeveloper.conf and now again the code templates (strg-shift-t) don't work!!!
(I already rebooted and set the accelerators to default, but it didn't help now.)
This is the content of my sqldeveloper.conf now:
"IncludeConfFile ../../ide/bin/ide.conf
AddVMOption -Dapple.laf.useScreenMenuBar=true
AddVMOption -Dcom.apple.mrj.application.apple.menu.about.name="SQL_Developer"
AddVMOption -Dcom.apple.mrj.application.growbox.intrudes=false
AddVMOption -Dcom.apple.macos.smallTabs=true
AddVMOption -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true
AddVMOption -Dsun.java2d.ddoffscreen=false
AddVMOption -Dwindows.shell.font.languages=
AddVMOption -XX:MaxPermSize=128M
IncludeConfFile sqldeveloper-nondebug.conf
AddVMOption -Duser.country=US
AddVMOption -Duser.territory=US
AddVMOption -Duser.language=en
" -
Jsp taglibs in include files not detected, throws errors, no code insight
I have a jsp which is included in all the other jsp. it looks something like this
taglibs.jsp
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
test.jsp
<%@ include file="/jsp/menu/taglibs.jsp"%>
<html>
<head>
<title>Tours</title>
</head>
<body>
<form:form commandName="testCommand">
<form:hidden path="tour.firstname" id="tour.firstname" />
and so on.
I am having 2 problems
1. the jsp editor show errors all over the place saying
element path not expected
element commandName not expected etc.
2. no code insights.
but if i include the taglib def in test.jsp it dosn't show any error and also provides code insights. but seldom do people include all taglibs in all jsps.
is there a way for Jdeveloper to show code insights in jsp pages which includes a jsp or like xml schemas could be added at some place(tools-pref-xml schemas) and when used anywhere, would provide code insights.am not sure, try with this
<jsp:include .../> -
how can i delete the yellow color code items from my hard drive? What are these other files anyway? I wanna save some memory space from my storage.
Macbook Pro community is here
Following thread could solve your question.
https://discussions.apple.com/message/19030300#19030300 -
Created file in illustrator then opened in photoshop but color code changed?
I Created file in illustrator and then opened the art in photoshop but the wierd thing is that the color code changed. If you look at the image with you eye the color will look the same to the naked but if you use the eye dripper tool you can see that the color code has changed between illustrator and photoshop.
Is there a way to make the CMYK color code stay the same?In Illustrator the "Edit---> color settings" are set to "North America General Purpose 2" and the that is the same color setting choice in Photoshop.
For example there is a black color in Illustrator that has this CMYK code "60, 49,47, 100"
but in photoshop the CMYK code for the same part of the graphic changes to "75, 68, 67, 90"
This is only one example of many color code changes that are happening and this may look like the same color on the screen but I need them to both have the same code because I am doing specialized printing and need no changes in color codes like this to occur.
If I have the color setting in both photoshop and illustrator both set exactly the same "Edit---> color settings" then do you know why this color shift would be happening. Please help. -
Png files not exporting in correct color code
Hey everyone I've had this continual problem in illustrator with png exports, for some reason my png's export with duller, less saturated colors than what I am seeing inside of illustrator. However, my jpegs export correctly. I've been able to figure out that my png's are not exporting with the correct color code (sRGB), even if this option is selected in "save for web" options. I have been having to open the png's in Mac's preview program or opening them into photoshop and exporting with sRGB profile embedded from there. I figure there must be some setting I don't have selected within illustrator. Document color mode is RGB, working space is sRGB, "Color Management Policy" is preserve embeded profile, and under the "Assign Profile" option it is set to working space RGB: sRGB. Any suggestions?
I don't think there is anything wrong with the color management you are using.
I suspect that you are using Illustrator CS6.
Although you can specify that the image has to be converted to sRGB (and it probably does), the profile is not embedded in the file.
The latest CC version does, although you cannot check a box: ICC Profile like you can when saving JPEG.
I think the reasoning behind this could have been: "PNG is a web file format. and Browsers cannot be trusted with colormanagement, most of them think that all files are sRGB, so why embed the profile..."
So you did the right thing by assigning the profile in Photoshop.
Ton -
Can I color-code file types?
I'm a Mac newbie. I carried over some Windows files I have been working on for years. They were made by different versions of a layout program (PageMaker 6.5 -> PageMaker 7.0 -> InDesign CS5.5), and so have different file extensions.
I see how to color an individual filename, but would like to assign one color to all files with the same extension to facilitate bringing them all up to date. Can I do that?Hello,
Yes you can color code based on extensions. Open a Finder window and hit command+F - this is a search window that can be populated according to your searching criteria and can also be saved to later consulting (it would live in the sidebar should you decide so). Click on the little drop down menu presently labeled as Type and choose other; type extension on the now blinking cursor besides the magnifying glass to narrow your options, choose file extension and "ok" your selection. Now fill the box with the desired extension (no dots necessary) and select all, do your color coding and you're done.
Regards,
Vitu -
In my experimental photo album page I originally defined the
styles in a
separate .CSS file. However this appeared to be incompatible
with the
requirement to have the session_start (); statement at the
start of the file, so
I then defined the styles locally. Now I have found that a
style which gives
padding to the right of an image no longer works in IE6,
although Dreamweaver
shows the expected result.
I have made two very simple test files to demonstrate this:
http://localhost/Corybas/Cydalba/Test/Test_page_8[1
http://localhost/Corybas/Cydalba/Test/Test_page_8[2
In Test_page_8[1].htm styles are defined by the include file
../Spl2.ccs, which
is included using the following statement in the head:
<link href="../Spl2.css" rel="stylesheet" type="text/css"
/>
The include file reads:
/* Test.css for Cydalba project */
.img_left { float:left; border:none; padding-left:0;
padding-bottom:0;
padding-top:0; padding-right:10px; }
p { font-family: "Times New Roman", Times, serif; color:
#f00000;
margin-bottom: 0.25em; margin-top: 0px; border: 0; }
In Test_page_8[2].htm styles are defined locally, using the
following lines at
the start of file:
<style type="text/css">
/* Test.css for Cydalba project */
.img_left { float:left; border:none; padding-left:0;
padding-bottom:0;
padding-top:0; padding-right:10px; }
p { font-family: "Times New Roman", Times, serif; color:
#f00000;
margin-bottom: 0.25em; margin-top: 0px; border: 0; }
</style>
With IE6 Test_page_8[1] gives the expected padding between
the images and the
adjacent text, but Test_page_8[2] does not. The para
definition appears to work
correctly in both cases.
Can anyone explain this?
ClancyHi Rob,
I am making a wild guess here...the reason could be that the internal tables or variables declared as part of Global data (if any) must be refreshed in your FM code.
Regards,
Sumant. -
How to make it so that DW shows color-coded text for a file type?
Hi,
I work with ".inc" files, which I include into PHP files.
At the moment DW just shows all of the text within .inc files
as black. How can I get DW to color-code the text (like it does
with other files such as html or php) so that I can make it easier
to read?
Cheers!http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16410
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"chuckee" <[email protected]> wrote in
message
news:fb6cdb$mno$[email protected]..
> Thanks for that but I did want to keep the file with the
.inc extension.
> In the back of my mind I thought there was some setting
I could change so
> that DW recognised new file types. -
Flex 3 vs Flex 4 Preprocessor directives and code behind (External Actionscript file)
I have a framework that I've built that I want to use on Flex3 and Flex4.
I've added pre-processor directives as per this link (http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.html) and got my Flex 4 code to compile nicely.
I then went to flex 3 and discovered my sub-class of Application wouldn't compile because it was based off of spark. No problem, I'll add in a directive.
Except now my overridden class has duplicate code, specific to which SDK it is using.
No problem, I'll put all of the application class code in an Actionscript file and include it in both Application class declarations for each directive.
It works nicely in Flex 3, so I went to Flex 4, tried to compile and now I'm getting compiler errors saying things such as "The (private|public|protected) attribute may only be used on class property definitions." and "The (private|public|protected) attribute can only be used inside a package.
This same file works in Flex 3, but not in Flex 4.
What can I do to make the code compile in both places?
I'll work on a simple case so I can upload some code.Nevermind.
I got around this issue by renaming my sub-classed Application to "...Application".
Now I can use a directive to specify an import statement for the extends Application portion rather than specifiing the fully qualified spark.components.Application or mx.core.Application.
Lame - but done. -
Dreamweaver 8 - Include File issue
Can anyone help.
I have managed to fix this on previous versions of
Dreamweaver however its not working on Dreamweaver 8.
The problem is I'm trying to view Include files (.inc) in
Design view, but Dreamweaver 8 will only allow me to view this in
code view.
The link I used to solve this on previous versions is as
follows:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16410
The main problem is I cannot find my MMDocumentTypes.xml file
so I think this could have something to do with it not working.
Any help would be greatWhy not rename your *.inc files to *.htm(l)?
> The main problem is I cannot find my MMDocumentTypes.xml
file so I think
> this
> could have something to do with it not working.
It's in the -
C:\Documents and Settings\<username>\Application
Data\Macromedia\Dreamweaver
8\Configuration\
folder.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"mattbuk1984" <[email protected]> wrote in
message
news:endmm0$7u9$[email protected]..
> Can anyone help.
>
> I have managed to fix this on previous versions of
Dreamweaver however its
> not
> working on Dreamweaver 8.
>
> The problem is I'm trying to view Include files (.inc)
in Design view, but
> Dreamweaver 8 will only allow me to view this in code
view.
>
> The link I used to solve this on previous versions is as
follows:
>
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16410
>
> The main problem is I cannot find my MMDocumentTypes.xml
file so I think
> this
> could have something to do with it not working.
>
> Any help would be great
> -
How to change the filename in @include file?
I want to do a checking before deciding to include which file,
for example,
<%
if(isValid){
%>
<%@ include file="abc.jsp" %>
<%
else{ %>
<%@ include file="def.jsp" %>
<% } %>but the code above doesnt work in my JSPs
any idea how to solve this?
thanks
DesmondAm i clear?? pls correct me if i am wrong..You are wrong.
The include directive is being used here, which is a compile time include, not a runtime include. Both includes will be performed before the resulting servlet is compiled.
If they have a conflict between them (either by not nesting them in their own { scope } or using <%! declarations %>) then the generated servlet will fail to compile.
So if you had the following:
abc.jsp:
Hello from ABC!
<% String myVar = "ABC"; %>def.jsp:
Hello from DEF!
<% String myVar = "DEF"; %>And the page as mentioned in the original post, you would end up with a Servlet something like this:
if (isValid){
out.println("Hello from ABC!");
String myVar = "ABC";
else{
out.println("Hello from DEF!");
String myVar = "DEF";
}This example would compile because of the presence of the braces.
However removing the braces or using a <%! declaration %> would probably screw things up with a compile error.
The %Include directive is like a copy/paste into a JSP before you compile it.
The <jsp:include> is evaluated at runtime and copies in the result of executing the page.
The difference is quite subtle, but very important.
Cheers,
evnafets
Maybe you are looking for
-
Fixed asset acquisition report by month?
Hi, We're using the fixed asset acquisition report thru tcode 'S_ALR_87012050 '. but there is only the report date input with the last day of the fiscal year concerned. Is there any standard report to see acquisition amount with month-end or specific
-
How can I make Firefox 4's "File Upload" window start in the same directory across all sites?
I upload webcomic image files to multiple sites every day--the same file to multiple sites--through the "File Upload" window that comes up in Firefox when you click on a site's "Browse..." file request field. In Firefox 3 (under Windows XP), when I u
-
I have installed itunes 10.7 and now it doesn't open. How do I get it to open?
I have installed 10.7 on my Windows PC. Now everytime I try and open it, it doesn't want to even open. I have looked at similar questions and try to do their solutions but to no avail. What I have tried so far: Uninstalling all the programs that hav
-
Qosmio G50-12Q: Recording TV programs to DVD video using Win Media Centre
Good Morning I have a Qosmio G50-12Q that it introduces this problem: When I want to masterize or burn a program recorded of the terrestrial TV with the Qosmio on DVD - video it come outside this message MEDIA CENTER EXTENSIBILITY HOST HAS STOPPED TO
-
hi all, i have a scenario where in i am sending mats with diff material types in the same STO order. is it possible for me to split the deliveries on the basis of material type. thnx in advance saurabh