C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2720
Number of posts: 5746

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
key words not colored Posted by airwalker on 19 May 2007 at 3:06 AM
Hi guys, Im using visual studio 2005 Team Edition for software developers.



I've noticed that sometimes key words are not beong displayed as they should. Take for example this code snippet from ascs file.


<%@ Control Language="C#" %>
<%@ Register TagPrefix="TRC" TagName="PaperRepeater" Src="sys_tronic1_paper_types_template__1.ascx" %>
<%@ Register TagPrefix="TRC" Namespace="Test1" Assembly="Test1_Code" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="TRC.BRX.Entities" %>
<%@ Import Namespace="TRC.BRX.Data" %>

<script runat="server">

// from here key words are not colored
private string BodyId = "";
private string LevelId ="";
private string sitId ="";
private string pap_types ="";

protected override void OnLoad(EventArgs e)
{

base.OnLoad(e);
SetPaperTypes();
iCountPAP = 1;
// get BodyID and LevelID from Step 1
if (Session["BD_ID"] != null)

key words like 'if', 'string' and 'private' are not coloured.

sometimes this dosnt happen, but more often than not its like the above, and when its like that I cant set break points, add varaiables to the watch window etc.

does anybody know what causes this and the solution is?

much appriciated
Report
Re: key words not colored Posted by minhnguyena7 on 4 Jun 2007 at 11:50 PM
try to resetup Text Editor as:
tools >>> Options >>> Text Editor



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.