Coder Social home page Coder Social logo

vscode-foxpro's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vscode-foxpro's Issues

Add a screenshot to the home page of this extension...

I think it would be cool if you added a screenshot of VFP code in VS Code on the home page of this extension in the Marketplace. It would look really cool!

Here is the code you can paste into your readme,md file to display the screenshot from my original repo:

![alt text](http://content.screencast.com/users/MattSlay/folders/Snagit/media/354acc1a-ff2b-4514-84d0-3c47b2d7e250/04.01.2019-14.14.png "screenshot")

alt text

Beautify the prg

Hello Ted,
How to implement a beautify feature in vscode for prg files?
Currently, my VFP Project hook class is beautifying the prg in VFP before opening it in vscode.

Meanwhile, if you can put the following in foxpro-configuration.json, then it would be of some help - and if you feel that I have missed any keywords, then pls add them too.

`
"indentationRules": {
"increaseIndentPattern": "^\s*(DEFINE|FUNCTION|PROCEDURE|FOR|IF|ELSE|TEXT|SCAN|TRY|CATCH|FINALLY|DO CASE|CASE|OTHERWISE|DO WHILE)",
"decreaseIndentPattern": "^\s"
}

`

Use the green INSTALL button instead of the download link...

Attention everyone - be sure to use the green INSTALL button at the top of the Visual Studio Code Marketplace page, rather than the "download" link on the right side bar of that page. The INSTALL button will launch VS Code for you and to the install, whereas the download link downloads a VSIX file, but will give an error if you click on the VSIX to install it.

Follow these instructions to install the VSIX from the VS Code IDE:
https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix

Here is the error you will get with if you just click on the downloaded VSIX file to launch it from Windows Explorer:

image

EndDefine is the wrong color...

Notice that Define Class is in blue, and so are Procedure and End Procedure, but see how End Define has a yellow color...

image

strings

Hi,

with this code:
&& xxx
** ccccc
wait window "str('', '"')"
wait window 'str("", "'")'
for i=1 to 10
msg("ola")
next

you can see that it breaks coloring because of ' inside "

you can fix this with these changes in FoxPro.plist:

<dict>
		<key>match</key>
		<string>(")(.*)(")</string>
		<key>name</key>
		<string>string.foxpro</string>
	</dict>
<dict>
		<key>match</key>
		<string>(')(.*)(')</string>
		<key>name</key>
		<string>string.foxpro</string>
	</dict>
<dict>
		<key>match</key>
		<string>(\[)(.*)(\])</string>
		<key>name</key>
		<string>string.foxpro</string>
	</dict>

	<!-- <dict>
		<key>begin</key>
		<string>(")</string>
		<key>beginCaptures</key>
		<dict>
			<key>0</key>
			<dict>
				<key>name</key>
				<string>punctuation.definition.string.begin.foxpro</string>
			</dict>
		</dict>
		<key>end</key>
		<string>(")</string>
		<key>endCaptures</key>
		<dict>
			<key>0</key>
			<dict>
				<key>name</key>
				<string>punctuation.definition.string.end.foxpro</string>
			</dict>
		</dict>
		<key>name</key>
		<string>string.quoted.double.foxpro</string>
		<key>patterns</key>
		<array>
			<dict>
				<key>match</key>
				<string>("")</string>
				<key>name</key>
				<string>constant.character.escape.apostrophe.foxpro</string>
			</dict>
		</array>
	</dict>
<dict>
		<key>begin</key>
		<string>(')</string>
		<key>beginCaptures</key>
		<dict>
			<key>0</key>
			<dict>
				<key>name</key>
				<string>punctuation.definition.string.begin.foxpro</string>
			</dict>
		</dict>
		<key>end</key>
		<string>(')</string>
		<key>endCaptures</key>
		<dict>
			<key>0</key>
			<dict>
				<key>name</key>
				<string>punctuation.definition.string.end.foxpro</string>
			</dict>
		</dict>
		<key>name</key>
		<string>string.quoted.double.foxpro</string>
	</dict> -->

"Integer" should be a keyword

Hi,

When calling some DLL, we need to declare that function fist like:

DECLARE STRING MyLogin IN MyLIB.DLL String, Integer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.