亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sample.dsm

?? c語言編程軟件vc6.0中文綠色版_vc6.0官方下載
?? DSM
?? 第 1 頁 / 共 2 頁
字號:
'------------------------------------------------------------------------------
'FILE DESCRIPTION: SAMPLE.DSM is a collection of sample editor macros.
'------------------------------------------------------------------------------

'This routine has many uses if you are trying to determine the type of source 
'	file.
'Return value:  0 Unknown file type
'               1 C-related file, this includes .c, .cpp, .cxx, .h, .hpp, .hxx
'               2 Java-related file, this includes .jav, .java
'               3 ODL-style file, .odl, .idl
'               4 Resource file, .rc, .rc2
'               5 HTML-style file, this includes .html, and .htm
'               6 VBS-style file, .dsm
'               7 Def-style file, .def
'USE: Pass this function the document that you wish to get information for.
Function FileType (ByVal doc)
	ext = doc.Name
	FileType = 0
	pos = Instr(ext, ".")
	if pos > 0 then
		Do While pos <> 1
			ext = Mid(ext, pos, Len(ext) - pos + 1)
			pos = Instr(ext, ".")
		Loop
		ext = LCase(ext)
	end if
	If ext = ".rc" Or ext = ".rc2" Then
		FileType = 4
	ElseIf doc.Language = dsCPP Then
		FileType = 1
	ElseIf doc.Language = dsJava Then
		FileType = 2
	ElseIf doc.Language = dsIDL Then
		FileType = 3
	ElseIf doc.Language = dsHTML_IE3 Or doc.Language = dsHTML_RFC1866 Then
		FileType = 5  
	ElseIf doc.Language = dsVBSMacro Then ' 
		FileType = 6  
	ElseIf ext = ".def" Then
		FileType = 7
	Else 
		FileType = 0
	End If 
End Function


'This routine has many uses if you are trying to determine if an identifier
'  is a valid C identifier.
'  These identifiers do not include qualification syntax, for example:
'  foo.bar is not valid
'  foo is valid
'Parameters:    String to test for a valid C identifier.
'Return value:  True: passed parameter is a valid C identifier.
'               False: passed parameter is not a valid C identifier.
Function ValidId(Id)
	ValidId = True

	'Don't permit an empty string
	' (how can you identify nothing with something?)
	if Id = "" then 
	  ValidID = False
	  Exit Function
	End If

	For i = 1 To Len(Id)
	  if Mid(Id, i, 1) < "a" Or Mid(Id, i, 1) > "z" Then
		if Mid(Id, i, 1) < "A" Or Mid(Id, i, 1) > "Z" Then
			if Mid(Id, i, 1) < "0" Or Mid(Id, i, 1) > "9" Then
				if Mid(Id, i, 1) <> "_" Then
					ValidId = False
				End if
			End If
		End If	
	  End If
	Next
	If IsNumeric(Left(Id, 1)) = True Then
		ValidId = False
	End If
End Function


Dim ParamArr ()  ' Dynamic array to store function arguments.

Sub AddFunctionDescription ( )
'DESCRIPTION: Creates a comment block for the currently selected C/C++ function prototype

	'Throughout this file, ActiveDocument.Selection is used in place 
	'of ActiveDocument.Selection.Text.  The two are equivalent, and can 
	'be used interchangeably. The reason for the equivalence is that
	'Text is regarded as the default property to use. All uses of
	'ActiveDocument.Selection without any other property default to the Text
	'property.
	if ActiveDocument.Language = dsCPP Then
		Header = StripTabs(Trim(ActiveDocument.Selection))

		'Get the function return type.
		if Header <> "" then
			Reti = InStr(Header, " ")
			Loc = InStr(Header, "(")
			if Reti < Loc Then
			  RetTp = Left(Header, Reti)
			  Header = Right(Header, Len(Header) - Reti)
			End If

			'Get the function name.
			Loc = InStr(Header, "(") - 1
			Loc2 = InStr(Header, ")")
			if Loc > 0 And Loc2 > 0 then 'make sure there is a '(' and a ')'
				fcName = Left(Header, Loc)
				Header = Right(Header, Len(Header) - Len(fcName))

				'Do we have storage type on the return type?
				Trim (fcName)
				If InStr(fcName," ") <> 0 Then
					retTp = retTp + Left(fcName,InStr (fcName," "))
					fcName = Right(fcName, Len(fcName) - InStr(fcName," "))
				End If

				'Get the function parameters.
				iPrm = 0
				iPrmA = 0
				prms = Header 

				'Count the number of parameters. 
				Do While InStr(prms, ",") <> 0
					iPrm = iPrm + 1
					prms = Right(prms, Len(prms) - InStr(prms, ",")) 
				Loop 
				
				'Store the parameter list in the array.
				If iPrm > 0 Then  ' If multiple params.
					iPrm = iPrm + 1
					iPrmA = iPrm
					Redim ParamArr(iPrm)
					Do While InStr(header, ",") <> 0
						ParamArr(iPrm) = Left(Header, InStr (Header, ",") - 1)
						'Remove brace from first parameter.
						If InStr(ParamArr(iPrm), " (") <> 0 Then
							ParamArr(iPrm) = Right(ParamArr(iPrm), _
									Len(ParamArr(iPrm))-InStr(ParamArr(iPrm)," ("))
							Trim(ParamArr(iPrm))
						End If
						Header = Right(Header, Len(Header) - InStr(Header,","))
						iPrm = iPrm - 1 
						Loop 
					ParamArr(iPrm) = Header 
					'Remove trailing brace from last parameter.
					If InStr(ParamArr(iPrm), ")") <> 0 Then
						ParamArr(iPrm) = Left(ParamArr(iPrm), _
								InStr(ParamArr(iPrm), ")") - 1)
						Trim(ParamArr(iPrm))
					End If
				Else 'Possibly one param.
					Redim ParamArr(1)
					Header = Right(Header, Len(Header) - 1) ' Strip the first brace.
					Trim(Header)
					ParamArr(1) = StripTabs(Header)
					If InStr(ParamArr(1), ")") <> 1 Then
						ParamArr(1) = Left(ParamArr(1), InStr(ParamArr(1), ")") - 1)
						Trim(ParamArr(1))
						iPrmA = 1
					End If
				End If

				'Position the cursor one line above the selected text.
				ActiveDocument.Selection.LineUp
				ActiveDocument.Selection.LineDown
				ActiveDocument.Selection.StartOfLine
				ActiveDocument.Selection = vbLf

				Descr = "// Function name	: " + fcName + _
						vbLf + "// Description	    : " + _ 
						vbLf +  "// Return type		: " + RetTp + vbLf
				
				'Print the parameter list. 
				Last = iPrmA
				Do While iPrmA <> 0
					'Remove a line feed from any of the arguments.
					If InStr(ParamArr(iPrmA), vbLf) <> 0 Then
						ParamArr(iPrmA) = Right(ParamArr(iPrmA), _
								(Len(ParamArr(iPrmA)) - _
								InStr(ParamArr(iPrmA), vbLf)))
						Trim(ParamArr(iPrmA))
					End If
					ParamArr(iPrmA) = StripTabs(ParamArr(iPrmA))
					'If there are 2+ parameters, the first parameter will 
					'have a '(' prepended to it, remove it here:
					if iPrmA = Last AND Last <> 1 then
					  ParamArr(iPrmA) = Right(ParamArr(iPrmA), _
							Len(ParamArr(iPrmA)) - 1)
					End If
					Descr = Descr + "// Argument         : " + _
							ParamArr(iPrmA) + vbLf
					iPrmA = iPrmA - 1
				Loop
				ActiveDocument.Selection = Descr
			Else
				MsgBox("It is possible that the function you are trying to"+_
						" work with has a syntax error.")
			End if
		End If
	Else
		MsgBox("You need to have an active C/C++ document open"+ _
				vbLF+"with the function prototype selected.")
	End If
End Sub

'Strips the leading tab spaces. 
Function StripTabs (ByVal MyStr)
	Do While InStr(MyStr, vbTab) <> 0
		MyStr = Right(MyStr, Len(MyStr) - InStr(MyStr, vbTab)) 
	Loop 
	StripTabs = Trim(MyStr)
End Function

Sub ToggleCommentStyle ( )
'DESCRIPTION: Toggles between comment styles /* and //.

	TmpBlock = ""
	CmtBlock = ActiveDocument.Selection
	TypeOfFile = FileType(ActiveDocument)
	If TypeOfFile > 0 And TypeOfFile < 5 Then   'C/C++ style comment.
		'Get the first two characters of the comment block.
		Trim(CmtBlock)
		If Instr(CmtBlock,"//") <> 0 Then 
			Do While Instr (CmtBlock,"//") <> 0
				TmpBlock = TmpBlock + Left (CmtBlock, Instr (CmtBlock,"//") - 1)
				CmtBlock = Right(CmtBlock, (Len(CmtBlock) - (Instr(CmtBlock,_
						"//") + 1)))
			Loop
			CmtBlock = "/*" + TmpBlock + CmtBlock + "*/"
		ElseIf Instr(CmtBlock, "/*") <> 0 Then 
			CmtBlock = Right(CmtBlock, Len(CmtBlock) - (Instr(CmtBlock,"/*")_
					+ 1))
			Do While Instr (CmtBlock, vbLf) <> 0
				TmpBlock = TmpBlock + Left (CmtBlock, Instr(CmtBlock, vbLf))_
						+ "//"
				CmtBlock = Right(CmtBlock, (Len(CmtBlock) - (Instr(CmtBlock,_
						vbLf))))
			Loop
			CmtBlock = "//" + TmpBlock + Trim(CmtBlock)
			CmtBlock = Left(CmtBlock, Instr(CmtBlock,"*/")-1)
		End If
		ActiveDocument.Selection.Delete
		ActiveDocument.Selection = CmtBlock
	Else
		MsgBox "This macro does not work on this type of file."
	End If
	
End Sub



Sub AddRevisionMarks ( )
'DESCRIPTION: Adds comments to a file that describe the changes made.

	'This routine adds a new comment block to the top of a file, where the 
	' programmer can place revision marks to describe the changes made to the file.
	'The rules this routine uses are as follows:
	' 1) Start at the top of the file.
	' 2) Scan through each line; if the current line starts with a comment,
	'      advance to the next line..
	' 3) If we are currently in a group comment block, keep advancing until
	'     the end of the block is found.
	' 4) If we are in a line item comment (e.g.: //, ', rem, etc), keep advancing
	'     until a line that does not start with a comment is found.
	'     By 'start with a comment', it is meant a line, where after
	'     stripping off spaces and tabs from the beginning, the first set of
	'     characters is not a comment delimiter.
	' 5) Insert a blank line; this allows the next invocation of this macro
	'     to place the newer revision mark before all others.
	' 6) Insert the revision block.

	'Change this to the programmer's name for a default.
	DefaultUserName = "..."

	'Because the user may not have closed a comment (e.g. a /* without a */),
	' try to protect ourselves from an infinite loop...
	BreakAfter = 10 'Max number of lines to look at scan before aborting
	CurrentCount = 1

	BeginComment = "" 'The token for the specified language for the beginning
						' of a comment.
	EndComment = ""   'Same, except for the end of a comment.
	EveryLine = ""    'Does the comment mark need to be placed on every line
						' (VBS, DEF types)?

	'First, make sure the active document is a text window
	' (Not really necessary, but good practice).
	If ActiveDocument.Type = "Text" Then
		TypeOfFile = FileType(ActiveDocument)
    
		'Set ourselves at the very top of the document.
		'This also clears any selection made.
		ActiveDocument.Selection.StartOfDocument
		ActiveDocument.Selection.SelectLine
		CurrText = ActiveDocument.Selection
		CurrText = LTrim(CurrText)
    
		'All of the following do relatively the same thing, 
		' except they look for different comment types.
		If TypeOfFile > 0 And TypeOfFile < 5 Then       'C/C++ family of code
			ContSearch = True
			BeginComment = "/*"
			EndComment = "*/"
			EveryLine = " "

			'In C/C++ style code, we need to look for a //;
			'  if not found, then look for a /*.
			Do
				ActiveDocument.Selection = CurrText
				If InStr(CurrText, "//") = 1 Then   'is a "//" available?
					ActiveDocument.Selection.SelectLine
					CurrText = LTrim(ActiveDocument.Selection) 'Remove whitespace.
					ContSearch = False   ' Looking at // style comments, 
											'don't look for a /* style.
				Else
					Exit Do
				End If
			Loop

			If ContSearch = False Then
				ActiveDocument.Selection.LineUp
			End If

			'When the method ActiveDocument.Selection.SelectLine is called,
			'  it is the same as when you click the mouse in the margin; it
			'  selects the whole line, including the carriage return.
			'  Because of this, the cursor comes down to the next line, which
			'  can really confuse this algorithm. So in a number of places, 
			'  you will see a grouping of LineUp/LineDown commands. By executing
			'  these commands, the cursor is moved down, which clears the current
			'  selection (including getting us past the carriage return),
			'  then moves us back up, thus putting us on the same line. This
			'  removesthe danger of skipping a line (which is what will
			'  happen without the LineUp/LineDown combination).
			If ContSearch = True Then
				ActiveDocument.Selection.StartOfDocument
				'Prime the loop with the first line.
				ActiveDocument.Selection.SelectLine
				CurrText = ActiveDocument.Selection           
				ActiveDocument.Selection.LineDown
				ActiveDocument.Selection.LineUp
				'Remove leading whitespace.
				CurrText = LTrim(CurrText)      
				'Does line start with a /*?              
				If InStr(CurrText,"/*") = 1 Then
					while (InStr(CurrText, "*/") = 0) And _
					      (BreakAfter > CurrentCount)
						ActiveDocument.Selection.SelectLine
						CurrText = ActiveDocument.Selection
						CurrText = LTrim(CurrText)                              
						ActiveDocument.Selection.LineDown
						ActiveDocument.Selection.LineUp    
						CurrentCount = CurrentCount + 1
					wend
					If (BreakAfter > CurrentCount) Then
						'Exit the loop because the search has gone on for an 
						'  unreasonable number of lines.
						MsgBox "Could not find a closing comment mark"
					End If
				End If
			End If

		'The code for these is really just a copy of that from the 
		'  C/C++ section...
		  
		ElseIf TypeOfFile = 5 Then                      'HTML code
			BeginComment = "<!--"
			EndComment = "-->"
			EveryLine = "    "
			If InStr(CurrText,"<!--") = 1 Then
				If InStr(CurrText,"-->") <> 0 Then
					ActiveDocument.Selection.LineDown
				Else
					Do
						ActiveDocument.Selection.SelectLine
						CurrText = ActiveDocument.Selection
						CurrText = Left(CurrText, Len(CurrText) - 2)
						ActiveDocument.Selection = CurrText + vbLf
						If InStr(CurrText, "-->") Then
							Exit Do
						End If
					Loop

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久噜噜噜久噜久久综合| 一区二区三区四区亚洲| 在线观看亚洲精品视频| 国产精品69久久久久水密桃| 蜜臀av亚洲一区中文字幕| 亚洲国产综合在线| 亚洲人成网站在线| 中文字幕第一页久久| 国产精品剧情在线亚洲| 国产精品视频免费| 亚洲视频一二三| 亚洲欧美电影一区二区| 一区二区三区欧美| 亚洲成在人线免费| 美女网站色91| 国产成人综合在线| 波多野结衣在线aⅴ中文字幕不卡| 高清不卡在线观看av| k8久久久一区二区三区| 一本色道a无线码一区v| 欧美午夜视频网站| 日韩视频在线你懂得| 精品成人私密视频| 中文字幕日韩av资源站| 亚洲国产美女搞黄色| 亚洲综合色自拍一区| 欧美日韩夫妻久久| 一区二区三区 在线观看视频| 国产精品乱码一区二三区小蝌蚪| 亚洲国产精品二十页| 一区二区免费看| 美女网站在线免费欧美精品| 国产乱妇无码大片在线观看| 91色.com| 日韩免费福利电影在线观看| 日本一区二区三区高清不卡 | 亚洲欧美日韩精品久久久久| 亚洲午夜影视影院在线观看| 国内精品国产三级国产a久久| 成人v精品蜜桃久久一区| 欧美日韩国产综合一区二区 | 蜜臀av性久久久久蜜臀aⅴ| 国产精品69毛片高清亚洲| 欧美亚洲综合一区| 久久久国产综合精品女国产盗摄| 一区二区三区加勒比av| 国产在线视频精品一区| 91久久线看在观草草青青| 久久免费午夜影院| 日韩激情av在线| 99视频有精品| 久久精品视频一区二区三区| 亚洲成av人在线观看| 99综合电影在线视频| 久久综合久久综合久久综合| 亚洲成人综合视频| 91丨九色丨尤物| 国产日韩精品一区二区三区在线| 爽爽淫人综合网网站| 色综合中文字幕| 中文乱码免费一区二区| 国产麻豆精品在线观看| 91精品国产综合久久精品app| 亚洲免费av网站| 99视频精品在线| 国产精品美女久久久久久| 久久精品国产精品亚洲精品| 欧美区一区二区三区| 亚洲综合免费观看高清在线观看| 国产精品18久久久久久久网站| 欧美精品 日韩| 午夜精品123| 欧美日本高清视频在线观看| 亚洲乱码国产乱码精品精的特点| 成人动漫一区二区三区| 国产午夜精品一区二区三区四区 | 中文字幕亚洲一区二区av在线| 韩日欧美一区二区三区| 欧美成人一区二区三区| 麻豆专区一区二区三区四区五区| 欧美伦理电影网| 午夜亚洲国产au精品一区二区| 91久久精品日日躁夜夜躁欧美| 亚洲三级视频在线观看| 色婷婷久久久综合中文字幕 | 亚洲不卡av一区二区三区| 欧美三级视频在线| 亚洲电影第三页| 欧美一区二区在线观看| 日本不卡视频在线观看| 欧美电影免费观看高清完整版 | 欧美三日本三级三级在线播放| 亚洲激情图片一区| 91精品国产黑色紧身裤美女| 国内成人精品2018免费看| 中文字幕欧美三区| 欧美中文字幕亚洲一区二区va在线| 亚洲国产一区在线观看| 日韩丝袜情趣美女图片| 成人黄色777网| 性欧美大战久久久久久久久| 精品国产一区二区三区不卡| 成人黄色在线看| 三级久久三级久久| 国产日韩欧美综合在线| 欧美中文字幕久久| 国产精品自在欧美一区| 亚洲激情av在线| 欧美va天堂va视频va在线| 97精品久久久久中文字幕| 丝袜亚洲精品中文字幕一区| 国产精品色婷婷久久58| 国产不卡一区视频| 亚洲欧洲日韩在线| 久久综合狠狠综合久久激情| 91丨porny丨户外露出| 成人欧美一区二区三区黑人麻豆| 92国产精品观看| 精品在线免费观看| 国产日产欧美一区| 成人黄色小视频在线观看| 中文字幕一区二区三区在线播放| 成人激情免费视频| 久久国产欧美日韩精品| 国产亚洲婷婷免费| 91色婷婷久久久久合中文| 一区二区三区波多野结衣在线观看| 丝袜美腿成人在线| 亚洲欧美日韩电影| 欧美一区二区在线观看| 国产在线精品一区在线观看麻豆| 国产欧美一区视频| 成人天堂资源www在线| 久久99精品国产.久久久久久| www激情久久| 91一区二区三区在线播放| 亚洲电影第三页| 亚洲精品在线网站| 日韩一级片网站| av亚洲精华国产精华| 亚洲成人先锋电影| 久久一区二区视频| 日本美女一区二区| 首页国产丝袜综合| 国产欧美中文在线| 欧美猛男超大videosgay| 韩国av一区二区三区四区 | 99re热这里只有精品视频| 亚洲不卡在线观看| 亚洲欧美自拍偷拍| 久久伊人蜜桃av一区二区| 欧美精品99久久久**| 国产成人免费视频精品含羞草妖精| 亚洲午夜电影网| 中文字幕亚洲精品在线观看| 日韩一区二区电影在线| 欧美tickling挠脚心丨vk| 日本高清不卡一区| 中文字幕在线不卡国产视频| 久久综合九色欧美综合狠狠| 99九九99九九九视频精品| 青青草91视频| 一区二区三区在线观看动漫| xnxx国产精品| 国产精品一二三四| 成人深夜视频在线观看| 蜜桃视频第一区免费观看| 综合网在线视频| 精品久久人人做人人爽| 欧美一区二区三区在线电影 | 91精品国产91热久久久做人人| 成人精品在线视频观看| 色94色欧美sute亚洲线路一久 | 777久久久精品| 在线一区二区观看| eeuss鲁片一区二区三区| 欧美日韩精品一区二区在线播放| 91麻豆福利精品推荐| 粉嫩aⅴ一区二区三区四区五区 | 国产精品电影一区二区| jlzzjlzz欧美大全| 欧美精品精品一区| 日韩欧美精品在线视频| 欧美一区二区播放| 欧美精品在线一区二区| 久久久电影一区二区三区| 久久久美女毛片| 久久亚洲一级片| 在线视频国内自拍亚洲视频| 日韩免费观看高清完整版| 日韩欧美中文字幕一区| 日韩免费视频一区| 欧美大度的电影原声| 亚洲男帅同性gay1069| 亚洲综合一区二区三区| 亚洲国产综合在线| 久久精品国产在热久久| 91成人在线观看喷潮| 91麻豆精品国产自产在线观看一区 | 婷婷夜色潮精品综合在线|