Make A Syntax Highlighters?
Mar 17, 2011I making a html editor, how to make a syntax highlighters?
View 2 RepliesI making a html editor, how to make a syntax highlighters?
View 2 RepliesTypes have their own color (cyan by default).Enter completes the auto-complete suggestion.
View 1 RepliesThis is part of a calculator program. I first part I sort by num and sign using a multitude of commandbuttons with no parenthesis.This program below is part of the second part. I have three more subroutines for /, +,- respectively.The + and - work correctly but * and / do not.I think it is in the line: numop(m) = g * h Is there something I am doing wrong wth the syntax in multiplication?
Public str, sign(100), numstr(100) As String
Public num1lock(100), m, n As Integer
Public ans, num(100), numop(100), g, h As Long
[code].....
have about 57 possible termination codes that if present in Action Reason I will need to pass in Action_Start_Date otherwise it should be empty.I got it this far this will bring in the Action_Start_Date if Action_Reason is s present. But when I add the OR syntax as you see on the second line it says syntax error
IIf ((Records("Child").Fields("Action_Reason") <> "07"),"",Records("Child").Field("Action_Start_Date"))
Or((Records("Child").Fields("Action_Reason") <>
[code].....
Using VB 2008r 2010 is there somehow I could make a syntax highlighter such as Notepad++?But maybe more simpler for only HTML, PHP and CSS? Or is there a plug-in or something you can download and add in your app?
View 3 Repliesshutdown -s t 60shuts down the PC in 1 minute. I would like to make the seconds part of the syntax variable as:Dim varSec as integer Process.start(shutdown s t & varSec)But it doesnt work nor produces errors. Can it be done this way?
View 3 RepliesMy question is about syntax.bviously every language has set of rules for how to write or speak specific language.My problem is that I don't know the rules for VB. Let say that I want to write this sentence in VB compiler: aligator with big mouth is coming to your house. I know the order: first noun, then verb, and argument in brackets. But when I want to write this aligator
View 12 RepliesI'm trying to make a syntax higlighter for my HTML/CSS/PHP editor and it's working great so far, except if you paste something and then try to edit it, it will randomly select text in front of the cursor.
VB.NET
Imports System.Text.RegularExpressions
Imports System.Runtime.InteropServices
Public Class Form1
[code]....
When you try to edit the pasted text this will happen:It randomly selects text in front of the cursor. This is only when the pasted text contains a keywordmatch.
I am having an issue trying to figure this out. I am writing a script editor that uses tabs (a tab control) and I want to implement syntax highlighting. My issue is that every sample I can find on syntax highlighting uses
Private Sub RichTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged
Can any one translate the following syntax to vb.net.
m_TextBox.Loaded += TextBoxLoaded
m_TextBox.Loaded -= TextBoxLoaded;
private void TextBoxLoaded(object sender, RoutedEventArgs e)[code].....
i have this code:Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code]...
Error 1: Option Strict On disallows late binding.Im using visual basic 2010 express on a gateway laptop thats running Windows 7 OS How do i resolve this error?
I have a listbox and it it I am showing numbers.It should look like this (line by line) 1,2,3,4,5,6,7,8,9,10,11.....but is is showing it like this 1,10,11,...2,20,21...3,30...ow can I make it that it will show it in number order 1,2,3,4,5......
View 5 RepliesI want to select some rows from a sql express 2005 table. I am using this expression: "Starttime >= " & dtpStart.Value dtpStart is a DateTimePicker But I am getting this error: Syntax error: Missing operand after '14' operator.
View 18 RepliesI have a web service in c# and its working well in c#.Following is one method i used in it
[WebMethod(EnableSession = true)]
public void abc(BllNew objNew)
{
new DAL.Entity.BllNew().sample();
}
But again i implemented above method in vb and is like this
[WebMethod(EnableSession = true)]
public void abc(BllNew objNew)
{
new DAL.Entity.BllNew().sample();
}
One syntax error is showing near 'new' keyword.What change i hve to get rid of syntax error.
I have the following code snippet:
CODE:
I do not understand the
CODE:
Can someone explain it? For the record...dropOperation is an enum. Can you give vb syntactical equivalent is all I need.
SELECT dbo.Calls.Description, dbo.TicketRead.IsRead, dbo.TicketRead.UserID
FROM dbo.Calls
LEFT OUTER JOIN dbo.TicketRead ON dbo.Calls.CallID = dbo.TicketRead.TicketID
WHERE dbo.TicketRead.UserID = 1 or is null
I want to get a list of all calls, but also a value indicating if the user have read the call. so I made when a user open's the ticket a new record is added in a special table. now if no user have read it then it's ok, but if just one user have read this ticket, then the other users don't have this call in the list..
just starting out to learn vb.net. I am doing so cuz i have some vba stuff i need to port.orry for the beginner question: translate this code I use in Outlook to vb.net? I know it's not complete, but I am stuck here.
Private Sub Application_ItemSend(ByVal Item As Object, ByVal Cancel As Boolean)
Dim objNS As NameSpace
im objFolder As MAPIFolder
[code]....
The following is from a WCF sample I am working on.
<ServiceBehavior(InstanceContextMode:=InstanceContextMode.Single)> _
<Foobar()> _
Public Class Service1
I've never understood this and just used examples, but I would like to understand what is going on here. What exactly is the stuff inside the <> brackets? How are these related to Service1? I understand the ServiceBehavior is related to the hosting, but what about Foobar?
I'm trying to display an aggregate feed of several RSS feeds. I'm doing this with an asp page.The problem is I'm getting the error message:Microsoft VBScript compilation error '800a0401' Expected end of statement for the line:Dim feed As SyndicationFe
View 1 RepliesI used to have this one
Dt = MyMod.GetDataTable("SELECT TOP " & QuestionsPerCats(i) & " * From Questions WHERE CategoriesID ='" & Cats(i) & "' ORDER BY NEWID()")
but now i decided to use sqlparameters like
Dim cmd As New SqlCommand("SELECT TOP @QuestionsPerCats * From Questions WHERE CategoriesID = @CategoriesID ORDER BY NEWID()", conn)
Dim sqlParam As SqlParameter = Nothing
sqlParam = cmd.Parameters.Add("@QuestionsPerCats", SqlDbType.SmallInt)
[code]....
and returns the following error
Incorrect syntax near '@QuestionsPerCats'.
I can't get a handle on the syntax. Can anyone give me a simple demo?
View 3 Repliesi hope to create an application to check vb.net syntaxes (for simple function or methoe). Application will be given richtext box to add function or method and when submit, need to check that vb.net syntax and it will be execute by powershell.
View 1 RepliesIs there any differnce between the following syntax? Im thinking that there isnt, as long as the end result of the "AS" portion has RuleType named "AS R.RuleType." Notice that the first snippet of code has the R.RuleType and the second has just Rule.Type.strRule.Append(
"select R.Ruleid,R.RuleNumber,isnull(C.ClientName,'') as ClientName,R.Customerid,Case R.RuleType when 'R' then 'P' when 'B' then 'G' else R.RuleType End as R.RuleType,isnull(C.InternalClientID,'')
as InternalClientID,")
[Code]...
im trying to do a basic calculation and i get a syntax error on what ever if first on the bottom line of this code :
[code].....
at the error is on the bracket on the bottom line but when i remove it , the error goes onto the 805 .everything is declared properly in a module. as integers?
How is VB6 Different from VB.NET in terms of Syntax? what is their relationship and major differences?.
View 7 RepliesI need to make something like :
if isdbnull(value) or value = something then
'do something
else
[code].....
It was suggested that I use xmldocument.load to do a sql insert statement instead of BULK INSERT.However when I run the Sub I am getting this error: "Incorrect syntax near '<'. "Here is my code, I have no clue what is causing this error, or how to fix it.
Sub AO()
Dim Z As String = Microsoft.VisualBasic.Format(Today.AddDays(-1), "MMddyyyy")
Dim AO_Name As New String("\NetImportAO-M_" & (Z) & ".xml")
Console.WriteLine(AO_Name)
[code].....
tell me the equivalent syntax for the following code in VB.net?
Static Class TestList
{
static void Main()
{
[code].....
how to make this ode right. Public Class FrmSecurityProgram
Private Sub BtnOK_Click(sender As System.Object, e As System.EventArgs) Handles BtnOK.Click
Dim ans As String
'Dim ctr1 As Integer
[code]....
it is a simple security program where it will ask for username and password. the user just have 3 times to try and when its the fourth try the msgbox will show and will tell the user that he exceeds the maximum number of try.
I am getting the error or syntax error , have a look!
[code]...
I am getting the error near the variable "data" I have tried to put double quotes, single quotes and both together but it doesn't solve anything, what is the correct syntax?