Browsing Source Code - 8 Space Tabs

Greetings, all!
When browsing source code (text files), things look a bit strange because Safari doesn't display 8 space tabs. Does anyone know of a way to gently encourage Safari to display 8 space tabs?
Thanks in advance,
Raj

Raj,
welcome to Discussions!
I don't know of a simple way to configure Safari to act as you want. You can try looking for an answer in the Safari Developer site, or on the webkit official site.
Hope this helps!

Similar Messages

  • Deleting the Older BWA Sources in Manage Space Tab

    Hello,
    I am currently facing an issue in deleting the older BWA Sources under the Manage Spaces Tabs. As part of my project, I happened to create a good number of BWA sources but now when it was time to delete those I am unable to do so. The list just keeps populating with newer BWA Sources being created on each day and it is becoming hard to keep a track on that list.
    So, I was wondering if someone could help me with deleting those BWA Sources.
    (P.S. I tried the right click option on the BWA Source to see if it could throw me an option to delete them but, no such option turned out.)
    Also, after creating the Information Spaces, its list under the Home tab too gets populated and does not have the option to delete the older Information Spaces.
    Thank You

    It is safe to uninstall the older versions. 
    Cheers,
    Jeff

  • How to beautify Java source code

    Hello!
    I'm mostly a Java developer, and I recently moved my projects to XCode. I was using jEdit previously, with a lot of plugins. I specially miss:
    * the ability to do vertical selections (jEdit, TextMate)
    * Gruntspud CVS plugin - but this can be run standalone, and I configured the default action to be /usr/bin/open so it opens the source and project files in Xcode.
    * and JavaStyle !!! This plugin "beautifies" Java source code. Sometimes, tabs are messed up and I want to clean up the code.
    Is there any JavaStyle-like plugin for XCode?

    * the ability to do vertical selections (jEdit,
    TextMate)
    Supposedly you can install 3rd party editors in Xcode. I have never done it though.
    * Gruntspud CVS plugin - but this can be run
    standalone, and I configured the default action to be
    /usr/bin/open so it opens the source and project
    files in Xcode.
    Xcode comes with a CVS plug in. Have you tried turning on SCM for your project?
    * and JavaStyle !!! This plugin "beautifies" Java
    source code. Sometimes, tabs are messed up and I want
    to clean up the code.
    I expect that a Java tool like JavaStyle would run from the command line. If so, you can probably wrap it in a script and install it in Xcode's script menu.

  • Load CF varibales into javascript array without outputing to source code

    I have a javascript array for dynamic dropdowns - Automobile, makes,models, etc.
    The javascript arrays are populated by by cf queries
    Everythign works and functions fine - but it also loads the entire array (hundreds of lines of code) into the browser source code.
    I would like to have the javascript arrays hidden from the browser source code by calling it:
    <script language="JavaScript" type='text/javascript' src='../js/super.js'></script>
    But when I code like this, the js file 'super.js' does not run the cf variables.
    The only way I can get it to function right now is to save a cf file called 'super.cfm' and have it run the cf query, then list the javascript code under the query on this cf template.
    THis works - but again, it causes the entire javascript code to be visible to the browser source code...
    any ideas? - I am on cf 7
    thanks in advance

    thanks for your idea
    I ended up rethinking the whole process and realized that I only update my vehicle make/model list about once a week
    So what I ended up doing was creating the the dynamic javascript arrays through cf - and rendered them in a browser, then took the browser source code (the fully rendered javascript arrays) and saved them as a static js file
    My website uses this js file on every page, so I no longer need to call queries on every single page to populate the javascript arrays - they are already built and I am guessing cached by the browser  (browsers cache js files right?)
    SO this runs more efficiently.
    The only draw back is that when I add a new vehicle to the list in my database, I will need to manually do the same process of rendering the new js code, then cutting and pasting it into my static js file that gets called by all pages.
    So it loses the realtime updates - but this only happened once a week anyway - and it only takes me five minutes to create the new file.
    We'll see if I get sick of manually creating a new js file each week - probably, but this seems better than making the server re-render the code on each page.
    Does this make sense? - would this be less overhead on the server than implimenting your concept?
    thanks.

  • How to remove blank spaces in the source code of my page?

    I created a page with the following code for testing:
    <dsp:page>
    <dsp:importbean bean="/atg/commerce/catalog/ProductLookup"/>
         <dsp:droplet name="ProductLookup">
              <dsp:param name="id" value="xprod2046" />
              <dsp:param name="elementName" value="product" />
              <dsp:oparam name="output">
                   <dsp:valueof param="product.DisplayName"/>
              </dsp:oparam>
         </dsp:droplet>
    </dsp:page>
    It only shows the product name in the browser. But if I look at the source code of my page he created 61 lines in response to this code, where a line is the product name and the other 60 have nothing.
    I know how to remove these lines that the ATG creates no content because my project is full of these empty lines.
    Anyone ever had this problem and could help me?
    Thanks

    Hi ,
    Yup this is a problem ,
    you can use following ways :
    1- use jsp comments eg :
    <dsp:page>
    <dsp:importbean bean="/atg/commerce/catalog/ProductLookup"/><%--
         ----%><dsp:droplet name="ProductLookup"><%--
              ----%><dsp:param name="id" value="xprod2046" /><%--
              ----%><dsp:param name="elementName" value="product" /><%--
              ----%><dsp:oparam name="output"><%--
                   ----%><dsp:valueof param="product.DisplayName"/><%--
              ----%></dsp:oparam><%--
         ----%></dsp:droplet><%--
    ----%></dsp:page>
    2- End tags at next line :
    e g :
    * <dsp:page
    * ><dsp:droplet name=”xyz”
    * ><dsp:oparam name=”output”
    * >Name: <dsp:valueof param=”abc”
    * /></dsp:oparam
    * ></dsp:droplet
    * ></dsp:page>
    3- Always use TAB instead of using SPACEBAR whie writing source code.
    4 - From JSP 2.1 onwards we have a page directive trimwhitespaces ( see if that works , i was not able to ), google for it for more info
    5 - You can modify your build scripts to remove white spaces from jsps while building EAR.(complex though, as you may not want to trim all white space.)
    6 - modifying the deployment descriptor.
    <init-param>
    <param-name>trimSpaces</param-name>
    <param-value>true</param-value>
    </init-param>

  • How can I view the source code of chrome://browser/content/browser.xul?

    How can I view the source code of chrome://browser/content/browser.xul of mobile FireFox?
    In my desktop version I just open this page in new tab and view webpage source, but there is no option for FF mobile to view source code.
    Best regards.

    Does the view-source: protocol work on mobile?
    *view-source:chrome://browser/content/browser.xul

  • Unwanted source code appears in browser but not in Dreamweaver Code Window

    I am using templates and css, and Dreamweaver to build a new website of about 20 pages. With the first several pages, everything was working well. Then as I continued to add pages, I started to notice some code appearing at the bottom of web pages (under the footer), and then, a page duplicating the footer, and then, the drop-down function on the index page not working (pulls down and pops right back up) while headers on other pages work fine. I viewed the source code in the browsers (IE and Firefox) and I see the extra code at the bottom. However, this code doesn't show up in Dreamweaver, or, when I open the files in Notepad.
    Following is an example of the different bottom-most lines of code in the Firefox browser compared to what I see in Dreamweaver or Notepad (note the highlighted line that is not showing up in Notepad or Dreamweaver).
    Firefox Browser:
    </div>
          </div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
    <!-- InstanceEndEditable --><script src="http://brandbar.oit.duke.edu/footer/videos_podcasts_full.php" type="text/javascript"></script>
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/header/js/jquery.min.js"></script>
    <script type="text/javascript" src="http://brandbar.oit.duke.edu/header/js/globalHeader.js"></script> 
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/footer/js/footer.js"></script>
    </body>
    <!-- InstanceEnd --></html>ript> 
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/footer/js/footer.js"></script>
    </body>
    <!-- InstanceEnd --></html>
    Notepad or Dreamweaver code screen:
    </div>
          </div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
    <!-- InstanceEndEditable --><script src="http://brandbar.oit.duke.edu/footer/videos_podcasts_full.php" type="text/javascript"></script>
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/header/js/jquery.min.js"></script>
    <script type="text/javascript" src="http://brandbar.oit.duke.edu/header/js/globalHeader.js"></script> 
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/footer/js/footer.js"></script>
    </body>
    <!-- InstanceEnd --></html>

    this answer is a bit late, but i think i have figured this problem out and it is probably still bugging someone out there.
    i was having the same issues through many dreamweaver upgrades and kept running into the same problem (only on my Mac though - PC never gave me trouble). anyway, my hard drive recently died and i had a brand new one installed and then i installed a fresh version of CS5. started building a page and ran into the same problem. now that this is happening on a new drive with a fresh OS and reinstalled software, i needed to look elsewhere.
    the problem is so simple you will more than likely cry at the amount of time you have wasted on it. more than likely if this is happening to you, you are working off of a network drive or a server. all my files are stored on a server locally, so when i make a change it is saving to the server. either a bad or slow connection to the server and/or a server going bad will cause this issue.
    take the same file that you are having problems with and save down to your desktop - then preview in a browser. so the solution is to build the entire site on your local drive and then FTP up to the live site when complete.
    hope this helps.

  • White space in XML source code

    Ok, I have tried all of the tricks to prevent white space in the code.  The page displays fine, but there are 4 lines at the top of the source code making the file not vaild.  Ideas?  Thanks in advance.

    You can use the reset attribute of CFCONTENT to clear any output, such as whitespace, that occurs before the CFCONTENT tag.  See quick sample below.  If this doesn't work for you can you post your code?
    <cfsavecontent variable="sampleXml"><?xml version="1.0"?> <!--- no line break or other space between opening cfsavecontent and xml declaration --->
        <people>
            <name>Jon Smith</name>
            <name>Rose Tyler</name>
        </people>
    </cfsavecontent>
    <!--- use reset attribute of cfcontent to clear output above cfcontent tag, do not include any whitespace between close of cfcontent and start of output --->
    <cfcontent type="text/xml" reset="yes" /><cfoutput>#sampleXml#</cfoutput>

  • How to get the HTML Source code from the active browser ?

    Hi All,
    I need to get the HTML Source code from the active browser (IE). I tried with the below code, but I am not able to get the Source code all the time, with respect to the different applications (http or https) and the user authentication has to be changes in few applications (_I dont know or not able to given that in the below code_). More over there is also a dependence of the URL to get the HTML Source code.
    Therefore what I feel is getting the HTML Source code from the given or active browser will be consistent than the URL. Since the Source code is available in the browser (IE) . Please help me with a sample code to achieve this . . . !
    HTMLDocument doc=(HTMLDocument) kit.createDefaultDocument();
    doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
    URL url = new URL(strURL);
    Reader HTMLReader = new InputStreamReader(url.openConnection().getInputStream());
    kit.read(HTMLReader, doc, 0);Thanks in advance,
    Regards,
    Jothi Venkatachalam
    Edited by: j0o on May 7, 2009 3:11 AM

    The simple answer is: you don't.
    Not only is it simply not possible, but the entire concept of "the active browser" doesn't exist.
    You were on the right track with your code to retrieve the page directly from the server, but as you noticed that code will only work for regular http connections.
    For https and other protocols you will need to use appropriate libraries for each protocol. Something like Apache Commons can help you with that. There are networking libraries in there for a lot of commonly used protocols.

  • View source code of the page executed in browser...

    Hi,
    Request you to help me to view the source code of the page executed in browser using a Query/ Web Template. We can view the HTML code when we go to
    Page--> View source code.
    But i want to see the Java code behind the web page.
    Regards,
    Koundinya K

    You can use tools like JD-GUI and the see the code. If you want to customize a cartirdge, you can always extend the class and add your stuff to the contentItem.
    Thanks

  • Safari showing source code in browser

    This morning one of my users machines started rendering all web pages with the source code showing in the browser. It seems to be code in the head tags like javascript and css. here is an example of how safari is rendering the apple home page http://www.aloftgroup.com/safari.jpg
    According to the user they didn't change any settings or install anything new. I can't figure it out. I have checked it against other machines running the same set up and everything looks fine on there machines and all the settings are the same.
    I dumped the safari preference file com.apple.safari.plist
    Thanks in advance

    I experienced this too, and I'm not alone.
    Every now and then, this page: http://ace.dse.nl/ace_jubileum.html shows up in Safari as html code.
    I had a look at the code and changed it so that it now validates as "Valid HTML 4.01 Transitional" code in the http://validator.w3.org/ - but this doesn't seem to make any difference.
    The weird thing is that this error happens randomly. If you reload the page 20 times, it happens one or two times.
    I read on www.antipixel.com that this behaviour was reported more than a year ago, and seems to be a Safari bug.
    Any work-arounds?

  • Source code of a web browser

    Does any one knows how to get a example source code of a web browser?
    Or the source code of the HotJava browser???

    Hello,
    If you seeing a sample code. Please refer to java.sun.com's Java Tutorial
    Topic :: How to use JEditorPane.
    These Java Packages can help you.
    Javax.swing for JEditorPane
    javax.swing.text for Document class
    Javax.swing.event for HTML Listener(to open hyperlink and pictures)
    For a Complete Solution please go to any S/W Company and make your own browser.

  • Is there HTML link code which will open "View Source Code" in a visitor's browser?

    This is for use only by my client during development.
    TIA

    This is a JavaScript that displays source code for any URL you type in to defeat the dreaded "disable right click".  Maybe you could fiddle it for your purpose.
    http://javascript.internet.com/page-details/source-viewer.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.com/blogspot.com

  • Extra indent in source code created in dreamweaver

    When I open a html file created in dreamweaver with a browser
    and view source code from the browser, there are extra indents
    added to the source code.
    For example, if I write a line of code in dreamweaver
    [tab]<p>one indent</p>
    it becomes
    [tab][tab]<p>one indent</p> in a browser
    Is there a setting in dreamweaver to make this from
    happening?

    Hello, Diane -
    We've got two separate issues here, but I think we have the solution to both.
    1. How to stop Contribute from adding blank lines in the code, and
    2. How to clean up a GAZILLION lines of blank code in a document.
    First, Number 1. I assume you're working in Dreamweaver. If not, I'm not sure how to guide you. But, when you define a Contribute Site, there is an area to specify administrative roles and permissions. Under each Role, at the bottom, you will see a popup for what kind of server the site is hosted on. The default is Windows. I had to change this to Unix (Linux) to match the hosting of our problem site. Find out what platform your host is using. You will have to specify this under each admistrative Role. After doing this, I had the client make some edits, then I opened the files in Dreamweaver. No new blank lines. I admit, I still have my fingers crossed somewhat.
    Okay, now how to clean up your source code and remove blank lines. A developer friend found this on some forum I had not seen. I don't know where, but I am grateful to the person who wrote it. It didn't get all the blank lines in my files, but I think some of the others, which I removed manually, were probably from the client pasting content in from Word. Here's what to do:
    1. Open the file in Dreamweaver
    2. Click CTRL + F, or go to EDIT > FIND AND REPLACE
    3. Select "Current document" in "Find In" (You can also select the folder if you have multiple files.
    4. Search in "Source Code"
    5. Check the box labeled "Use regular expression"
    6. Type "[\r\n]{2,}" (without quotes) in "Find"
    7. Type "\n" (without quotes) in "Replace"
    8. Press "Replace All"
    The operation chugged for a few minutes with my 301,000-line document. Yours may a take a little longer, but it did work. Good luck!
    Jeff
    [email protected]

  • I have source code

    Hi guys, I am a student of enginering. I am doing the project to finish. I need some source code to show images from a webcam to an applet in the client�s browser using JMF. When client press a button in my GUI it should be show a frame with the images from the webcam.
    If somebody wants to send me some information about this my e-mail is: [email protected]
    Thank you and sorry for my bad english.

    See this text of VLC forum:
    First let me say hello to you all and express how grateful and thankful I am that a great player VLC and a wnderful community (you) exists!
    I have a simple goal.. well maybe now too simple. My goal is to capture tv program and right away stream it on the internet. I have a decent PC, am planning on buying a tv tuner and have been thinking about how I will be able to achieve my goal. Does anyone know if VLC can have tv tuner as a capture device? Is there an article, or perhaps a tutorial that you know of which I could read?
    I am also wondering, how would I be able to stream video to the internet, so that people can see it in the browser window? like windows media player plugin?
    thank you very much in advance!!!
    Back to top
    Guest
    Posted: Sat Jan 21, 2006 6:54 am Post subject: Yes you can
    I am doing what you are wanting with a Leadtec TV2000 express. You should have no problems. Use DirectShow tab. Select your Tv tuner. Select Stream output.. Select MMSH and give it a port. I use Asf for encapsulation and div3 for video mp3 for audio. It's not to bad on my 1.7 gig intel.. about 40% cpu usage. Now all you have to do is type mms://(IP):(port) from start and run.
    Back to top
    Spilo101
    Guest
    Posted: Sat Jan 21, 2006 3:36 pm Post subject:
    Thank you very much for yor reply! I realy appreciate you helping me out.
    Do you know how I would stream several video streams simultaneously? I want to stream several at the same time.. thank you.

Maybe you are looking for

  • Print Layout Designer for UDO

    Hi, Can we design report with print layout designer for UDO forms? If yes, how do we accomplish this? If not, is there any other alternative? I am using 2004B. Thanks.

  • Corrupt project - how to go about fixing it?

    Hi all. I think I have a project which is slowly going corrupt. Anyone ever seen that? System: Dual 2-gig (late 2004 vintage), 2 gig RAM, OS 10.3.9, FCP 4.5/HD. What's happening is that while I'm editing, many anamalous things are happening. For inst

  • No "sip domain name" field in trunk configuration

    Hello, A customer' s UC320 throw a "sip 484" error, Sep 22 16:10:44 UC320W user.debug voice: SIP/2.0 484 Address Incomplete I think the problem is the lack of the  "sip domain name" field in the  trunk configuration as i can see one here; https://sup

  • Firefox not opening PDF with Adobe Reader for Mac

    I can't open PDF in Firefox with Adobe Reader for Mac, what should i do?

  • Impact Analysis: Business Area, Profit Center changed for Sales Order type

    Hi All, Can you please let me know the impact of changing the Business Area and Profit Center for Sales Order Document types. Scenario: Let's say that sales document type ZOR has been used for sometime. On this document x number of sales orders have