|
GenJerDan wrote: Why an online editor at all? Do it locally, then cut-n-paste. Agreed. I've not used anything but Notepad for all of my articles, and as a result, I've never lost a byte. Once published, rarely do I have to edit more than once. All of the bugs get worked out before ever clicking the Publish button.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I think my needs are similar to yours. I use VS Code with the Live Server extension by Ritwick Dey. I have used fancier web editors before and I find this much more suitable for a developer who occasionally writes some HTML/CSS/J*$%Scr#?t/PHP.
Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
|
|
|
|
|
Phil J Pearson wrote: I use VS Code
I use VS Code for almost everything that is not C# or SQL, or in a VS solution or project. However, I use VS Code to look at C# files and SQL if I don't want to open Visual Studio or SSMS.
|
|
|
|
|
Exactly like me.
Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
|
|
|
|
|
It is wysiwyg though? I'd like to know before I go track it down and install it.
Real programmers use butterflies
|
|
|
|
|
That's what the Live Server extension is for. It serves up the page you're editing so you see it rendered in a browser. I use Firefox but I think it also works with some other browsers. I usually work with the browser on another monitor so you can edit your HTML/CSS in VS Code and see the results alongside. It updates the browser display whenever you save in VS Code.
Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
|
|
|
|
|
Oh yeah that's not what I'm looking for. I want something offline, and wysiwyg.
Real programmers use butterflies
|
|
|
|
|
It is offline and wysiwyg. You don't need an Internet connection. The live server makes your own PC a local web server just for the stuff you're working on. Using a browser makes it wysiwyg since the browser is rendering the same (local) code in the same way it would if it got the code from the web.
Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
|
|
|
|
|
Oh. Well thanks so much! I'll check it out. Huge win if this does what I need since I'm moving over to VS code for all my development. Bye bye visual studio!
Real programmers use butterflies
|
|
|
|
|
FYI, I use both VS Code and full VS. I find both have their strong points. In general VS is better for full blown application development (although I've never really tried to do too much of it with VS Code) and working with data, while VS Code is better at most general editing tasks. (I also use Notepad and Notepad++ for editing arbitrary files, although VS Code is fast replacing most of what I used to use Notepad++ for).
|
|
|
|
|
I've been away from windows for a time. I came from visual studio and I didn't like VS code until after I was more or less forced into using it by devving on a linux machine
I eventually fell in love with it, and have decided I prefer it to visual studio, aside from a few quirks. It's less obtrusive, far more extensible, faster loading, and I can target arduinos without leaving the thing.
I especially like it for C++ projects, where I like the amount of control i have over the command like make/build i get from the editor.
Real programmers use butterflies
|
|
|
|
|
Thanks for the Live Server tip. I have just installed it and first impression is that it works really well.
|
|
|
|
|
I use a 2003 version of FrontPage.
That said, I got really frustrated with the crap that's out there, including the plugins for VSCode, so I ended up writing my own.[^]
At least that way I'm responsible for any bugs, lol. But I can also easily create the keyboard shortcuts that I want (with some limitations, sigh) and other behaviors, and the source is pretty small. I've used it to write a few articles, and I'm happy with it.
Some of the keyboard shortcuts were created specifically for article writing, to create "pre" tags with the "lang" specifier.
Annoyingly, because it's browser-based, saving means it downloads into the "downloads" folder.
If you end up liking it enough, or making changes to it, I think I can make you a co-author if you want to share the changes, or you could just write a new article improving it!
[edit]Oh, and it has a TOC generator![/edit]
|
|
|
|
|
Thanks, and cool though I'm really looking for something that works offline. Particularly I fear losing my work when Comcast inevitably fails and brings down the Internet in my region.
Real programmers use butterflies
|
|
|
|
|
Well, of course it works offline because it's not hosted on a server. Just run the HTML index file in your browser, whether it's offline or not.
|
|
|
|
|
Oh, it's pure HTML with no back end? Cool. I'll give it a look.
Real programmers use butterflies
|
|
|
|
|
Yup, and pure JavaScript too - no frameworks, no kruft, just raw metal. Actually the one and only file is just "editor.html" (I misspoke about "index" file.)
|
|
|
|
|
For local saving from an existing browser-based HTML/JS editor, I would recommend having locally running PHP.
With XAMPP you can have PHP without real installation, you just
- put XAMPP to some local folder
- set the root "web" folder (PHP can handle files only in this root folder and its subfolders)
- add XAMPP Control Panel executable to your operating system startup (or at least start it always before editing HTML)
- put a short local PHP script file e.g. MySaveFile.php to this root folder, which would validate the path and save the HTML to the file. It could also keep one or more backup copies of the file.
Then you would just add some controls into your editor:
- a Save button,
- an input text for the file path+name to the form (or call a simple JS function, which would create and submit the form)
- a small IFrame for sending the save request and getting the response (whether it was saved succesfully). The form action then would be "http://localhost:8080/MySaveFile.php" or something like that.
Using PHP could also offer the possibility to browse the folders and subfolders in the web root directory.
If someone is interested, I can prepare both the form for saving and the PHP script.
I tried several HTML editors and I was not able to choose any of them. They wrap lines where I don't want them to be wrapped, replace with a space, don't offer all the formatting properties I use,... And I already lost hope I could find some suitable programmer's WYSIWYG editor.
I suppose it's time to try Marc's editor.
|
|
|
|
|
Here's something i stumbled across, but I haven't downloaded it.
Smit HTML Editor - CodePlex Archive[^]
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I'll give it a look. It's a UserControl unfortunately. Hopefully they have a demo app i can use
Real programmers use butterflies
|
|
|
|
|
I could be talked into making an app around it.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Maybe I'll hit you up if this Live Server thing with VS Code doesn't work out for me. I hate writing GUI apps, especially WPF.
Real programmers use butterflies
|
|
|
|
|
Awesome thanks for the link. Writing an WPF app and have been looking for just such a beast.
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
I have been and still use MS's Expression Web 4. For years.
It has some auto-completion (it's not fully aware of the latest in HTML5/CSS3) but that really doesn't matter. Has wysiwyg for the HTML/CSS (that it understands) but it doesn't execute javascripts. Supposedly it would do php but, in my experience, connecting the engine to it hasn't worked out well.
But it has color coding, fonts, and all that which are customizable and does autocomplete most javascript/php/CSS3) and that covers a lot of it. Drag-and-Drop elements and styles, &etc. available but I've gotten to just typing in what I want.
Reliable . . . and free !
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Thanks. I am downloading it now. Hopefully my modem doesn't kick me offline before it can finish.
Real programmers use butterflies
|
|
|
|