How do I get this web-based word processor? - php

I was wondering if I could get a web-based word processor just like the one here on stack overflow, that shows a view of what you are typing in.

The editor used on StackOverflow is a modified version of WMD: http://wmd-editor.com/

http://wmd-editor.com/examples/splitscreen

TinyMCE has a lot of the same functionality. I think SO wrote their own, though.

You could use TinyMCE and make a function that gets the content of the TinyMCE editor box and creates a preview below it on every keystroke :)

Related

Need a live PHP editor like dreamweaver

I am in need of a live editing software for PHP like there is DreamVeawer for CSS. I need the functionality that I can select items from the webpage and it will highlight the particular source code for it. If anyone knows about such a software please let me know.
Thanks in advance.
Firefox has a nifty add-on called Web Developer. You can't edit the PHP code directly because it's server side but you can highlight/edit the resulting HTML. You can find it here https://addons.mozilla.org/en-US/firefox/addon/web-developer/
Use google chrome's webkit inspector, it will find you the right html source code, which you can then trace back to the PHP code.
I'm afraid you won't find a solution for that.
PHP runs on the server-side and doesn't render any code to the browser like HTML does.
The closest you'll come is selecting DOM elements in Firebug/Dreamweaver(or any other designy IDE) rendered after the PHP is parsed
Im not sure what youre looking for exactly. If you want a WYSIWYG html editor they are plenty.
If youre tring to trace function and method calls in code then you need an IDE with code assist. Both Eclipse and Netbeans with their respective PHP plugins have this - i.e. you click on a function call and it opens the file containing that function. Depending on the context this can also work with variables...
I think there are also WYSIWYG html plugins for both but im not sure as i dont use them.
This isn't exactly what you want but this IDE can give a help
Aptana http://www.aptana.com/
or
PHPStorm http://www.jetbrains.com/phpstorm/

Question about software that tracks divs better than notepad++

I recently got hired as a web developer, and the project that I am overseeing has a formatting issue on one of the pages because one of the divs is out of whack. It is a fairly complex page with quite a bit of php, and from what I can gather, I am missing a </div> tag somewhere, and accordingly everything is messed up.
I am currently using notepad++, which is decent at lining up divs, meaning that if you click on the opening div tag, it will highlight purple and also highlight the closing one. But it seems as though if you have div tags that span several lines (hundreds) it won't work.
Has anyone else run into a similar situation? Is there a better editor I could be using that would do a better job of helping me with my div issue? Or do I have to go through and line up the divs 1 by 1? (there are like over 100). Please let me know!! Thanks
An alternate route I would like to suggest is running your page through a validator, such as the W3C service at http://validator.w3.org
HTML Validator is an addon for Firefox that can automatically run your pages through a local validator and notify you of any issues with an icon in the satus bar.
You want an editor that detects and highlights syntax errors in markup (as well as validity). There are many. I use Komodo Edit from ActiveState (www.activestate.com)
A cross platform solution is Eclipse (PDT). It comes with a nice and handy html editor. For quick file changes and hotfixes I use TextMate – but this is OS X only :(
Sometimes, when I have crazy X/HTML that I am trying to clean up/debug I put it into an XML editor and let it do some of the matching/formatting for me. My personal choice is Altova's XMLSpy. It is not free (hell, it's not even cheap), but I really like the power it has. You can download a free demo from their website and see if it helps you out.
Like what others have said, use a free editor like Eclipse. Open your HTML in Eclipse, then press CTRL+SHIFT+F and it will format and indent the code, just like what Notepad++ does.
Is this page already online in public area?
If yes, did you try to validate the HTML/XHTML with W3C validator http://validator.w3.org/, it might tell you the exact line where the closed DIV tag is missing.
UPDATE: you can also copy and paste code of the page deirectly into the validator and validate it: you go with your browser at the page, then you select "View Source" from the browser manu, than you copy & paste code into W3C validator.
You could try using a more "Powerful" editor such as Eclipse or Netbeans. I use Netbeans for most of my HTML / PHP development, and it does a good job of highlighting matching tags.
Vim + matchit plugin
I use http://users.rcn.com/creitzel/tidy.html#tidyui for fixing html.

How can I get php source code to display neatly on my website?

is there some Javascript/CSS snippet or perhaps another solution to parse PHP source code intended as content on a web page so that it has highlighted elements for commands, variables, brackets etc?
PHP has a built in feature that allows you to rename your PHP files to ".phps", this stands for "PHP Source" or something. This will display nicely formatted PHP code for you.
Check out Google Code Prettify.
SyntaxHighlighter
i don't know if i've understood well your question bu if you want a syntax highlight on a php function use the highlight_file function
Github's GISTs can be made public and included directly in your pages. I really wish they'd add tabbing to the editor window, however.

tiny_mce affect all the text area in my page

i downlaoded a tiny_mce folder and implemented it in my page. it's work fine, My problem is that all the textarea in my page looks like tiny mce , i want only one textarea looks like tiny mce and left of all in normal textarea . what will i do to do this???
Please replay urgently
Thanks in advance...........
If you are finding tinymce hard to use there is an alternative called ckeditor at www.ckeditor.com. It is easy to customise though the default design is terrible but easy to change.
maybe if you looked at the tiny_mce site and their exhaustive and helpful examples you would discover it's easily done via class attributes, if you so desire .. check here

Free RTE [Rich text editor] help needed integrating it

Working on a PHP /html content management system and found Free RTE online which is a free rich text editor.
Have no idea how to integrate it into my own stuff.
There are sample codes with it alrite, but they are not very clear.
Anyone used it before or have any knowledge of integrating it???
RTE are usually very simple to embed. The process is to give an ID to your textarea and then initialize your RTE through Javascript calling for this textarea's ID. Javascript will transform this textarea into a fully-featured RTE on page load.
Usually well documented on RTE's examples and howtos. Which one are you using?
I haven't but i use http://www.ecardmax.com/index.php?step=Hoteditor which is in my opinion nice and easy to use, if it helps
What is an URL of that free editor you are talking about? Did you try for example FCKEditor? www.fckeditor.net
Thanks for your help guys,
I ended up going for FCKeditor which is now embedded and functioning.
It took a while to figure out how to link it into my own stuff tho, but the examples that came with it helped.
Turns out you just plant the editors directory tree into your primary working folder [or wherever] and edit the 'include' functions [php] to link the editor files to your own project files.
Heh and i found this website by accident like, thumbs up for stackoverflow!!!

Categories