[PAWN EDITOR] PawnSciTE • Highlighting, Folding, Colorpicker, FTP and much more!
#1


This is an incredibly lightweight standalone SciTE modification (no SciTE knowledge or previous installation needed) that adds full syntax highlighting, code folding, FTP uploads, gta-host.com server restarting, Function Parameter Tooltips, JumpTo Functions+Callbacks, Colour Previews and Colour Picker and much, MUCH more!


_________________________________________________

All you need to do is download it and run the installer!


Links are at the bottom!

_________________________________________________

0.6 Progress

Green = Complete
Orange = Almost complete
Red = In development
Blue = Need more requests for the feature

Waiting for suggestions


  • UTF-8 by default.
  • Start menu shortcuts other than uninstaller
_________________________________________________

Cool Features:
  • Full syntax highlighting including function highlighting for all SA:MP functions
  • Function Parameter Tooltips (OK, so they sound stupid... but they are really awesome - take a look at the screenshot below)
  • Local Server Restarting - Via changemode/reloadfs (Recommended), via GMX or via full restart
  • Remote Server Restarting (gta-host.com only, unless I can get hold of the rcon protocol (not very likely, lol))
  • Pawno compiler in a sidebar that allows you to double-click an error to be taken to the appropriate line!
  • JumpTo Callbacks and JumpTo Functions (allows you to jump to callbacks and functions)
  • Automatic FTP Uploads (Requires Windows XP / Vista)
  • Code Folding
  • User Friendly Settings Interface (so no editing files like in version 0.1 and early releases of 0.2)
  • Tabbed Interface - each .pwn opens in a new tab rather than a whole new instance of the editor
  • Unlimited Buffer (No lag when opening large files - the only limitation to the size of file you can open is your RAM.)
  • Colour Picker and Colour Previews (Instant previews of Pawn colour codes with full colour picker with colour slider for full control over colours.)
  • Code Completion (Press CTRL+Enter after typing the first few letters of a function)
_________________________________________________


System Requirements
  • Installation of SA:MP Windows Server
  • Installation of Pawno (for the compiler)
  • Windows 95+ (FTP is XP / Vista only and Transparecy is 2000+)
  • Just about any computer (the CPU/RAM requirements are absolutely tiny)

_________________________________________________


Some Random Info:
  • The only language used is AutoHotkey! (and several complex SciTE .properties files)
  • No knowledge of SciTE is needed to use this
  • All source is available in the .ahk files. Feel free to change and/or re-release it, but please credit me as the original author.
  • If anyone wants to improve pawn.api (by adding some stuff from Useful Functions, MIC etc.) then please feel free to do so and send it to me when done.
  • The font from the screenshots (Bitstream Vera Sans Mono) is packaged with the editor and will be installed and used by default in PawnSciTE.
_________________________________________________

Changelog

0.1
  • Proper syntax highlighting (even highlights most SA:MP-specific functions)
  • Compiler runs in a sidebar and you can double click on an error and it will take you to the line.
  • Code completion support.
  • Uses SciTE, so theoretically unlimited buffer (you can open far bigger files than in Pawno without lag)
  • Code folding including "Fold All" feature
  • Pwn appears in file type menu when opening and saving files.
  • When "All Source" is selected in the file type menu when opening and saving files, pwn is included in the definition.
0.2
  • Installer for easy installation of the plugin and the editor itself.
  • Settings application to make it easy to configure things such as the location of pawncc.exe and your FTP Username/Password/Address etc.
  • Intelligent cURL-powered server restarting via web control panel for gta-host.com servers.
  • FTP uploads to theoretically any server and (probably coming in a later update) intelligent folder selection (currently you must select folder from a dropdown list or type it manually).
  • Monospaced font by default due to request.
0.3
  • Changed tab size to 4 by default.
  • Local server restarting
  • JumpTo Functions (jump to functions declarations easily)
  • JumpTo Callbacks (jump to callbacks easily)
  • Altered a few colours and layout options
  • While in Pawn language mode, when a new script it saved, it defaults to .pwn
  • Even better settings window (see screenshot)
  • Settings button within SciTE to open settings window
  • Renamed Go, Build, Compile within SciTE
  • Function parameter tooltips for almost every standard function!
0.4
  • New local restarting mode that uses changemode and reloadfs (and selects between them automatically by analysing the code).[/color]
  • JumpTo now hides itself when SciTE is minimised and removes AlwaysOnTop when SciTE is unfocused. Also, it looks much more integrated with SciTE.
  • Fixed JumpTo Functions (Relies on a new line being taken before function declarations to tell them apart from usage of the function).

0.5
  • Colour Picker and Colour Previews!
  • Fixed several minor bugs in the Toolbox (previously known as the JumpTo window)
  • Far more compilation options

0.51
  • Fixed samp-server.exe window detection (was using unreliable technique before)
  • Made ToolBox very transparent when not in use, and slightly transparent when in use. (looks pretty good )
  • ToolBox no longer pops up unexpectly while deactivated.
0.52
  • SciTE updated from 1.74 to 1.75.
  • Toolbar and statusbar now shown by default.
  • Several minor bugfixes.
_________________________________________________

Known Bugs as of 0.52:
  • JumpTo Functions still isn't fully reliable
  • (Theoretical) It would be possible to attempt to load a colour code from a huge amount of characters placed to the clipboard. This would cause the AHK script to freeze for a few seconds, before displaying a dialogue box that might be too big to fit on the screen. But this is highly unlikely.
_________________________________________________

Screenshots

Main Window of 0.5 (0.52 has a transparent toolbox when unfocused)
[img width=500 height=400]http://dkimmortal.com/bleh4.png[/img]

Settings Interface of 0.3 (0.52 looks almost exactly the same)



Function Parameter Tooltips (Cool, eh? )


_________________________________________________
Downloads:

PawnSciTE 0.52 (zipped installer) (via my site) (direct link)
PawnSciTE 0.52 (zipped without installer) (lacks fonts) (via my site) (direct link)
PawnSciTE 0.52 (zipped source only) (via my site) (direct link)
SciTE 1.76 Source Code

PawnSciTE 0.52 (zipped installer) (via mirror by oliverluata) (direct link)
PawnSciTE 0.52 (zipped installer) (via mirror by Numhaken) (captcha +5 second delay)



(Feel free to mirror)

[size=12pt]You should uninstall any previous versions when installing. If you don't, make sure you install it OVER any previous versions, overwriting all old files.
Reply
#2

it doesn't work properly and you can't convert it to amx -_-

I even think this ain't even made for pawn
Reply
#3

Quote:

it doesn't work properly and you can't convert it to amx -_-

Yes, it does work properly, you just need to set it up correctly.

Make sure you imported it correctly into SciTEGlobal.properties, or just used the included SciTE package. Also make sure that the location of pawncc.exe at the the top of pwn.properties is set correctly. Once this is done, conversion to .amx is as simple as hitting compile, or pressing ctrl+F7.

Quote:

I even think this ain't even made for pawn

No offence, but having spent the past 3 or 4 hours making this, I think I would know what language it is for.
Reply
#4

I forgot to add something -_-
even tough I have read the whole manual
works now

could you change the font ? because the one atm is not that good
Reply
#5

Quote:

could you change the font ? because the one atm is not that good

Just enable "Use Monospaced Font" in the options menu, or mess around in SciTEGlobal.properties. The packaged SciTE has Bitstream Vera Sans Mono set as the monospaced font, so if you don't have that installed, weird things could happen.
Reply
#6

i downloaded it and using how but how do you use it? i dont see any syntax highlighting on my script.
Reply
#7

Quote:

i downloaded it and using how but how do you use it? i dont see any syntax highlighting on my script.

Try using the full package (scite.zip) and just open a .pwn file or set the language to "Pawn" in the Languages menu. You'll need to edit the first line in pwn.properties to the path of your compiler (without trailing slash).

If you just extracted pwn.properties into an existing SciTE installation, you need to import it into SciTEGlobal.properties (there's instructions on how to do this in the readme).
Reply
#8

cool! I got this all working fine. it looks very promising
Reply
#9

I've just added an update - check the first post.

Still no code completion though
Reply
#10

well... I can compile with it...
Reply
#11

Quote:

well... I can compile with it...

You mean the syntax highlighting isn't working?
Reply
#12

no, I wasnt very clear, everything seems to work fine for me

except I cant nativly open .pwn files... I need to change the file extensions to show to all files before they show.
Reply
#13

Quote:

except I cant nativly open .pwn files... I need to change the file extensions to show to all files before they show.

Are you sure you overwrote your SciTEGlobal.properties with the one in the updated files package?
Reply
#14

I just downloaded this, followed the setup and started testing it. I found a bug really really fast.

I scripted this:
Code:
forward public lol(const hey[]);

public lol(const hey[])
{
	return printf(hey);
}
And I get this error:
Code:
>C:\Programmer\pawno\pawncc test.pwn
test.pwn(5) : error 017: undefined symbol "printf"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
>Exit code: 1
Something tells me you aren't done yet. Good work though, I really like it, and I hope you'll fix this bug (and others like it if there's any - I haven't tested others than printf).
Reply
#15

That bug can't be caused by my plugin - it uses pawncc.exe directly, just like pawno does.

If that is all there was in the script, maybe the lack of
Code:
#include <a_samp>
caused the problem...
Reply
#16

Quote:
Originally Posted by Darkimmortal
That bug can't be caused by my plugin - it uses pawncc.exe directly, just like pawno does.

If that is all there was in the script, maybe the lack of
Code:
#include <a_samp>
caused the problem...
Lol I feel stupid right now
Reply
#17

I tried this plugin and I can tell you it's work great It's great since I had to compile my scripts separately (I always use SciTE), and now it's all integrated

However, from the replies I read here, I think you should use this plugin only if you're familiar with SciTE. It's not meant for people who are only able to work with single-purpose editors like Pawno.
Reply
#18

Quote:

However, from the replies I read here, I think you should use this plugin only if you're familiar with SciTE. It's not meant for people who are only able to work with single-purpose editors like Pawno.

I agree - unless you really understand SciTE (it's actually not too complex an editor compared to editors like Notepad++), you should wait until I get round to building an auto installer and a customised version of SciTE just for pawn.

I'm also working on a macro to do FTP uploads and auto-restarting for gta-host.com servers. Well actually, it's already built and working perfectly but I want to see if I can integrate it with SciTE, possibly uploading and restarting upon successful compilation.
Reply
#19

it has no commands list on right site as classic pawno?
Reply
#20

Quote:

it has no commands list on right site as classic pawno?

I think I know what you mean, although I've only seen it in screenshots as its never worked for me. Hopefully I will be able to implement something similar to a later version.

And for anyone that uses this plugin, I have almost completed a new version, complete with easy installer, FTP uploads and gta-host.com server restarting. The first release should be very soon!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)